Write a program to delete a 3rd character from a given string


Topic: Write a program to delete a 3rd character from a given string

Solution

String='welcome'
new_str = "" 
  
for i in range(len(String)): 
    if i != 2: 
        new_str = new_str + String[i] 
print(new_str)



List all Python Programs