Re: [Tutor] Strings backwards

2006-01-18 Thread Danny Yoo
On Thu, 19 Jan 2006, Hans Dushanthakumar wrote: > Try this: > > print word[::-1] Hi Hans and Adam, Just wanted to point out: next time, let's try to figure out why Ryan had problems with this, rather than directly give a working answer. For example, we can ask things like: what part did Ryan

Re: [Tutor] Strings backwards

2006-01-18 Thread Adam
On 18/01/06, ryan luna <[EMAIL PROTECTED]> wrote: --- Adam <[EMAIL PROTECTED]> wrote:> On 18/01/06, ryan luna <[EMAIL PROTECTED]>> wrote: > >> > Hello, what i need to do is get user input and> then> > print the string backwards ^^ i have no idea how> to do> > that,> >> > print "Enter a word and i w

Re: [Tutor] Strings backwards

2006-01-18 Thread Hans Dushanthakumar
Try this: print word[::-1] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of ryan luna Sent: Thursday, 19 January 2006 12:13 p.m. To: tutor@python.org Subject: [Tutor] Strings backwards Hello, what i need to do is get user input and then print the string

[Tutor] Strings backwards

2006-01-18 Thread ryan luna
Hello, what i need to do is get user input and then print the string backwards ^^ i have no idea how to do that, print "Enter a word and i well tell you how to say it backwards" word = raw_input("Your word: ") print word all that is simple enough im sure printing it out backwards is to, just d