Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def loopshift(num):
- numlst = list(str(num))
- for i in range(1,len(numlst)):
- x = int(''.join(numlst[i:] + numlst[:i]))
- yield x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement