Consistent alteration of symbols in the line
📁 Advanced Python Topics
Lines of different arbitrary length, various characters. How to make a shift of the symbols of the line by one symbol and sequentially sort out all the options in order to get from the line 1a2b3c get:
1a2b3c
a2b3c1
2b3c1a
b3c1a2
3c1a2b
c1a2b3
1a2b3c
It is necessary to implement a similar script in the terminal using UNIX toolbox, Python, Perl.