if something's going wrong, you can always try to call for help:
>>> help(print)
Help on built-in function print in module builtins:
print(...)
print(value, ..., sep=' ', end='\n', file=sys.stdout)
Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file: a file-like object (stream); defaults to the current sys.stdout.
sep: string inserted between values, default a space.
end: string appended after the last value, default a newline.
and there you might see, tha the syntax of that print
thing is print(something)
funny is, that in python 2, you get just an error message:
>>> help(print)
SyntaxError: invalid syntax
it's because in python < 3, print
function was not a function, but a keyword (just like e.g. for
or or
)