In this program, we will take a string as input and remove the kth element from the string.
Steps to solve the program
- Take a string as input.
- Print the string without kth element using Indexing.
#Input string
str1 = "sqatools"
#Printing output
print(str1[:2]+str1[3:])
Output :
sqtools