Write a function to rotate string left by a given length


Topic: Write a function to rotate string left by a given length

Solution

  
def rotate_left(input,d):  
  
    Lfirst = input[0 : d]  
    Lsecond = input[d :]  
    return (Lsecond + Lfirst) 



List all Python Programs