[Tutor] Newbie question re: user interaction

Douglas Sparling sparling@uclick.com
Thu, 1 Feb 2001 15:54:24 -0600


>Anyway, what I'm writing to ask about is, how do I do the equivalent of the
following BASIC function in Python?
>
>10 INPUT "What is your name?" N$
>20 PRINT "Hello, " N$ "!"


name = raw_input("What is your name? ")
print "Hello, " +  name + "!"