[Tutor] HELP

python python <python@inkedmn.net>
Sun, 18 Aug 2002 21:48:04 -0700


that's because there's quotes around the if statement.

i don't remember putting those there, but take them off and it should
work :)

best of luck,
brett

mt> print "Hi my name is tom and this is the subertrip program"
mt> print "-------------------------------------------------------"
mt> print "please pick a name"
mt> name = int(raw_input("enter 1 for Tom: "))
mt> if name = 1:
mt>    print "Tom is so cool"
mt> else:
mt>    print "you didn't enter 1"





mt> this always comes up how do I fix it?

mt> SyntaxError: invalid syntax
mt>   File "C:/Python22/sm", line 6
mt>     print "Tom is so cool"
mt>     ^
mt> SyntaxError: invalid syntaxGet more from the Web.  FREE MSN Explorer download : http://explorer.msn.com