[newbie] help with pygame-tutorial

Roy Smith roy at panix.com
Mon Apr 9 16:51:48 EDT 2012


In article 
<1a558398-3984-4b20-8d67-a0807871bc6d at v1g2000yqm.googlegroups.com>,
 aapeetnootjes <ilyacoolens at gmail.com> wrote:

> I'm trying out the pygame tutorial at 
> http://www.pygame.org/docs/tut/intro/intro.html
> If I try out the code I'm facing an error:
> ./game.py: line 4: syntax error  at unexpected symbol 'size'
> ./game.py: line 4: `size = width, height = 320, 240'
> 
> can anyone here tell me what's going wrong?
> 
> thanks

How did you run the code?  Did you do "python game.py", or did you just 
make game.py executable and run ./game.py?  If the later, my guess is 
it's being interpreted by the shell because there's no #! line.



More information about the Python-list mailing list