Write a function to remove i-th indexed character in a given string


Topic: Write a function to remove i-th indexed character in a given string

Solution

def remove_char(string, i):
    str1 = string[ : i]  
    str2 = string[i + 1: ] 
      
    return str1 + str2 



List all Python Programs