D
D
Denis Triel2018-04-08 13:05:16
Python
Denis Triel, 2018-04-08 13:05:16

Python gives an invalid syntax error, what is the error?

I started reading a book on learning the Python language, Dawson-M.-Programming-in-Python. I downloaded Python, I enter the first line of code print ("game over") everything is fine. then I save and open in, as I understand it, script mode, press F5 and then the error "invalid syntax" pops up, and shows the lines of code that were before I added something there. I do not know what's the problem.
5ac9e9355fcb7985034669.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-04-08
@Trielsiren

Somehow I understood what the jamb is - you copied (saved) everything, but you only need

print("Game Over")
input("\n\n Нажмите энтер для завершения.")

without the service output of the python version and other heresy displayed in the console mode (Shell).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question