Recently I got a task to shift characters of a string as shown below sample

```
s = 'abcd'
right shift by 2
output: 'cdab'

```

I used below code and it works fine.

```
l1=[]
l2=[]
s='abcs'
l1=list(s)
loop = 0
rightshift = 2
while loop < rightshift:
     l2=[]
     l2=l1[1:]
     l2.append(l1[0])
     l1=[]
     l1=l2
     loop += 1
 print('After shift ' , l1)

```

However, if we have a large number like 544645655, it takes a lot of time. Do we have any other alternative method?

```
Some more examples(where s='abcd')
bcda 1st shift
cdab 2nd shift
dabc 3rd shift
abcd 4th shift
bcda 5th shift

```