|
How to write a whole string backwards.
Realy quike, how do I write a whole string backwards, letter to letter. I can get all the way to the last letter then it just doesn't go any further. It'll give out some random error after wards if I try to put in a number above how many I have. So the code is...
aStr = "This is a string"
print aStr[-14:what?]
I tried 1 and then 14 like it says in a newbie documentation I found at python.org. I don't realy know what else to say at the moment I need to sleep for school tomarow. Hopefully someone has an answer to it. Thanx in advance.
|