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
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
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
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