I was trying to make the string HELLO to OHELL in Python. But couldn\'t get any way to rotate it without working with loops. How to code for it in
HELLO
OHELL
Here is a simple way of looking at it...
s = 'HELLO' for r in range(5): print(s[r:] + s[:r]) HELLO ELLOH LLOHE LOHEL OHELL