Python Forum

Full Version: Could you guys help with this bug. I would post on StackOverflow but I got tempbanned
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It keeps giving this error.

1 import world
2 from player import Player
3
4 def play():
5 world.load_tiles()
6 while player.is_alive() and not player.victory:

^
SyntaxError: unexpected EOF while parsing on line 7
Hi use code tag and not line number in code.
It's not code we can run,like this there is no error and can continue with more code on line 7.
import world
from player import Player

def play():
    world.load_tiles()
    while player.is_alive() and not player.victory:
        # Do something
        pass
How to ask good questions.
need more info.
What python version are you running?
How are you running it? (interpreter or in a file)
What is the entire code?
What is the entire traceback error?