I have a strange error with argument sep, file(etc.) python function print(). I tried to do this, peek into stackoverflow and read the python documentation , but I didn't come up with anything. I attached a simple snippet, I would deeply appreciate any help.
Python 2.7.2 (default, Aug 19 2011, 20:41:43) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print("blah"*10, sep=" | ")
File "<stdin>", line 1
print("blah"*10, sep=" | ")
^
SyntaxError: invalid syntax
source
share