Write a Python Program to Remove the nth Index Character from a Non-Empty String


Topic: Write a Python Program to Remove the nth Index Character from a Non-Empty String

Solution

def remove(string, n):  
      first = string[:n]   
      last = string[n+1:]  
      return first + last



List all Python Programs