eof error in python code example

Example 1: eof error meaning

# EOFError happens when input() has no data

>>> data = input("Write something ")
Write something 

# if I quit program before writing something, 
# the program reports EOFError because there is no input

Example 2: eof python error

EOF Error usually means that there was an open parenthesis without
a closing parenthesis; the file ended before the action was complete.

Example 3: pyflakes invalid syntax

if variable > 10
  print(variable + str(" > 10"))
# there is no ":" next to the 10 in the 1st line, that will activate an error which is "SyntaxError : invalid syntax"
# [pyflakes] significate something is missing in your code