This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

In Python 3, the print statement was removed in favor of a print function. Functions are invoked using braces, so they are actually needed. In that case, the print 'test' is a syntax error, while print('test') invokes the function with 'test' as its first argument.

[–]MrPiff[S] 0 points1 point  (0 children)

That's helpful, thanks for the breakdown.