I'm working on a script for making a text-based game, and no-one I ask can find the issue, so I decided to ask here. When it gets to pressing enter, it comes up with an EOF error.
The code is as follows:
import time
print("Welcome to PyGame, a text-based adventure game run entirely via Python version 3.6.8.\n")
start=str(input("Press ENTER to begin."))
if start=="":
print("Loading...")
time.sleep(3)
else:
quit()
The error, specifically, is:
Welcome to PyGame, a text-based adventure game run entirely via Python version 3.6.8.
Press ENTER to begin.
Traceback (most recent call last):
File "E:\Random\PyGame.py", line 4, in <module>
start=str(input("Press ENTER to begin."))
File "<string>", line 0
^
SyntaxError: unexpected EOF while parsing