0

Python version deference

In 2.7 can work with out any parentheses... In 3.x it's mandatory.... Switching versions complicated... Enlighten me please

12th Nov 2016, 5:14 AM
Dhruba Chatterjee
Dhruba Chatterjee - avatar
1 ответ
+ 1
For example, print was a statement in 2.x and a function in 3.x. It was changed to make the operation more consistent with the rest of Python. Here's the rationale: https://www.python.org/dev/peps/pep-3105/
12th Nov 2016, 10:39 AM
Kirk Schafer
Kirk Schafer - avatar