On 2/5/06, Ivan Shevanski <[EMAIL PROTECTED]> wrote:
On 2/5/06, Ivan Shevanski <[EMAIL PROTECTED] > wrote:
On 2/5/06, Florian Nykrin <[EMAIL PROTECTED] > wrote: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.
--
http://mail.python.org/mailman/listinfo/python-list
--
Oh, I was under the impression that myself is a variable name. . .Who would type in myself as their name?If it is a variable it's fine how it is, but if it is a string put it in quotes.
-Ivan
Ugh sorry read it wrong, thats right.
--
-Ivan
-- http://mail.python.org/mailman/listinfo/python-list