[Tutor] Capturing user input

Patrick K. O'Brien pobrien@orbtech.com
Wed, 20 Jun 2001 10:34:47 -0500


Works for me:

>>> name = raw_input ("What is your name? ")
What is your name? pat
>>> print name
pat
>>>

---
Patrick K. O'Brien
Orbtech
"I am, therefore I think."

-----Original Message-----
From: tutor-admin@python.org [mailto:tutor-admin@python.org]On Behalf Of
Adrian at home
Sent: Wednesday, June 20, 2001 10:08 AM
To: tutor@python.org
Subject: [Tutor] Capturing user input

Hi All

I am a total newbie to programming, but for the life of me I cannot
understand why this will not work.  I am using IDLE and a tutorial, the
following code is to capture the user input:

name = raw_input ("What is your name? ")
print name

I cannot get the variable "name" to print to the screen, after the prompt
displays and the user types in their name.  It seems straight forward
enough, am I missing something obvious here?

thanks in advance for any response.

Adrian


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.259 / Virus Database: 130 - Release Date: 05/06/2001


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor