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