print(i,end = ' ') ^ SyntaxError: invalid syntax code example
Example: Python 3 invalid syntax with print()
print("hello")
var = 1
print(var)
var = io.input()
print(var)
print("hello")
var = 1
print(var)
var = io.input()
print(var)