I get an error in Pythonista, but not in Idle on desktop
S = 'abcedfghijklm'
What seems to be the problem here?
I'm not getting an error here, it prints
fedc, as expected. What kind of error do you get?
Your -1 has a dash character instead of a minus sign character. If you change it to a minus sign then the world will become a better place.
@ccc Thanx a lot. I must have copied it from somewhere unexpecting a dash instead of a minus. Well, lesson learned. The traps lurking behind an innocent facade...