I'm getting this error in Python3.2 on a simple print statement. I'm going through some tutorials, and this is exactly the code example is written:
fh = open('lines.txt')
for line in fh.readlines():
print(line, end="")
But this is what i get
File "./forloop.py", line 5
print(line, end="")
^
SyntaxError: invalid syntax
Any ideas why?