Trying to print list items on individual lines as simply as possible following this:
https://www.geeksforgeeks.org/print-lists-in-python-4-different-ways/
>>> myVar = [1, 2, 3, 4, 5]
>>> print(*myVar)
File "<stdin>", line 1
print(*myVar)
^
SyntaxError: invalid syntax
I must use Python 2.7.8, so I guess I have to translate that without ()
but I fail at this:
>>> print *myVar
File "<stdin>", line 1
print *myVar
^
SyntaxError: invalid syntax
So, is this a syntax issue? Or is there a better way to do this on v2.7.8?