Learning Python

Florian Nykrin fn-mail at t-online.de
Sun Feb 5 11:14:33 EST 2006


Hi Byte!

Your code should look like this:

x = raw_input('Please enter your name: ')
if x == 'myself': print 'OK'

Because myself should be a string and not a variable name, you have to 
put it in quotes.

Regards, Florian.



More information about the Python-list mailing list