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