Python Forum
Could you guys help with this bug. I would post on StackOverflow but I got tempbanned
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Could you guys help with this bug. I would post on StackOverflow but I got tempbanned
#1
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
Reply
#2
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.
Reply
#3
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?
Recommended Tutorials:
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  guys please help me , pycharm is not able to identify my xlsx file CrazyGreenYT7 1 1,971 Jun-13-2021, 02:22 PM
Last Post: Larz60+
  hi guys, i'm back to learning python ! astral_travel 6 2,857 Oct-05-2020, 10:02 AM
Last Post: astral_travel
  Hi Guys, please help me to write SAS macro parameter equivalent code in Python Manohar9589 2 2,540 Jun-14-2020, 05:07 PM
Last Post: Larz60+
  Help Please guys AbuSiraj 2 2,644 Feb-14-2019, 09:29 AM
Last Post: AbuSiraj
  Hey guys, help a newbie out with a list problem. sdezigner 2 2,627 Feb-15-2018, 06:06 PM
Last Post: sdezigner
  Hello,Guys!,I met a very strange bug homepoeple 4 3,253 Jan-26-2018, 12:16 PM
Last Post: homepoeple
  Hey guys can you please help me with some basic coding Stabu 9 6,172 Jul-16-2017, 10:11 AM
Last Post: MyImpsNamesAre

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020