Go to advanced search

by jliddlejths
Tue Apr 07, 2020 6:10 pm
Forum: Python
Topic: Syntax Error
Replies: 7
Views: 264

Re: Syntax Error

I would expect the Raspberry Pi User Guide and it's co-author Gareth Halfacree to be reliable. I therefore suspect some error has occurred in acquiring the script. I now fix the code but now I get a different message: I get the Raspberry Pi Snake come up but it is a blank screen when I close it, I ...
by jliddlejths
Tue Apr 07, 2020 5:39 pm
Forum: Python
Topic: Syntax Error
Replies: 7
Views: 264

Re: Syntax Error

A quick look suggests your indentation is off on the elif line Probably the line *after* elif, starting with 'if' But there are more problems. The indentation after the 'sys.exit()' cannot be correct. It puts all the code below it inside the 'gameover' procedure, meaning it will never be reached......
by jliddlejths
Mon Apr 06, 2020 12:36 pm
Forum: Python
Topic: Syntax Error
Replies: 7
Views: 264

Syntax Error

Please could you look at the code and see what wrong with it.

It saying syntax error with elif code.

https://drive.google.com/file/d/1in-315 ... sp=sharing

Go to advanced search