I have a alphabet string like:
string = 'abcdefghijklmnopqrstuvwxyz'
if want to do slicing and and go from z to a but with 3 steps. what should I do? I know string[::-1]
will reverse it but how can I make it go by 3 steps each time?
I have done it by assigning a new string which is reverse of the other string and do slicing with 3 steps from there. I'm looking for a new way to do it without changing the previous string and doing it on the same spot