[Solved] 2.7.6 python version needs parenthesis to print?


Your impression is correct, it’s not needed (unless of course you import print_function von __future__!). However, it’s not prohibited either. print is followed by an expression, and (sys.version) is a valid expression as much as sys.version is. Note that (x) does not create a tuple containing x (that would be (x,)).

solved 2.7.6 python version needs parenthesis to print?