Remove the kth element from the string

In this program, we will take a string as input and remove the kth element from the string.

Steps to solve the program
  1. Take a string as input.
  2. Print the string without kth element using Indexing.
				
					#Input string
str1 = "sqatools"

#Printing output
print(str1[:2]+str1[3:])
				
			

Output :

				
					sqtools
				
			

accept a string that contains only vowels

check if a given string is binary or not.

Leave a Comment