[Tutor] What's the invalid syntax?

ZIYAD A. M. AL-BATLY zamb at saudi.net.sa
Sat Jul 9 22:50:14 CEST 2005


On Sat, 2005-07-09 at 14:00 -0600, Nathan Pinno wrote:
> What's the invalid syntax?
>  
> Here's the code (Part of my Guess the Numbers game):
>  
>         if a0 == x0 and a1 == x1 and a2 == x2 and a3 == x3:
>             print "Congratulations! Way to go?"
>             answer = raw input("Play again: (Y)es or (N)o Type the letter of your choice. ")
                       ^^^^^^^^^
                       raw_input

It's "raw_input()" not "raw input()"

>  
> Thanks,
> Nathan Pinno
> Crew, McDonalds Restaurant, Camrose, AB Canada
> http://www.npinnowebsite.ca/
You're welcome.
Ziyad.



More information about the Tutor mailing list