I started learning python recently and the examples given on python.org only talk about number comparison. I tried: x = input("Proceed?"); if x == 'y': print "You typed y\n"; This gives out a syntax error.