list1 ="abcd"
nlst=list1[1:]+list1[0]
print(nlst)  #left rotate

list1 ="abcd"
nlst=list1[-1]+list1[0:3]
print(nlst) #right rotate

list1 = ['a','b','c','d','e']
nlst=list1[1:]+list1[0]
print(nlst)

list1 = ['a','b','c','d','e']
nlst=list1[-1]+list1[:4]
print(nlst)

