invalid syntax for print in python code example Example: Python 3 invalid syntax with print() print("hello") var = 1 print(var) var = io.input() print(var)