Re: [Tutor] Python backwards program (fwd)

2005-04-14 Thread Jim and Laura Ahl
Hello, I wanted to thank all of you who helped me with the backwards program.  I finally got off my stubborn butt and downloaded 2.4.1 and the program finally works.  That 2.2 was not compatible with the way I was thinking, or maybe I wasn't compatible with it was thinking who knows.    i =

Re: [Tutor] (no subject)

2005-04-14 Thread Jim and Laura Ahl
Jim and Laura Ahl said unto the world upon 2005-04-14 02:09:> How come when I ask it to print i[2:4] from an inputted string it> gives me the letters between two and four> > But when I ask it to print i[-1:-4] it does not print anything.> > Jim> Hi Jim,good to see you

[Tutor] (no subject)

2005-04-13 Thread Jim and Laura Ahl
How come when I ask it to print i[2:4] from an inputted string it gives me the letters between two and four   But when I ask it to print i[-1:-4] it does not print anything.   Jim ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/

Re: [Tutor] Python backwards program

2005-04-13 Thread Jim and Laura Ahl
ard time so this is an alternate > longer way:>> >>> backword=""> >>> counter=len(word)>> >>> while counter!=0:>  backword+=word[counter-1]>  counter-=1>> >>> print backword> tseroF

[Tutor] Python backwards program

2005-04-12 Thread Jim and Laura Ahl
I am very new to programming and I have an assignment to have a raw_input string that is inputted by the user and then is printed backwards.  Can anyone help me?  I can get it to print regular but backwards in not working.   Thank You Jim ___ Tutor