Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The parentheses make sense because print is a function that has parameters, and more than just the string to be printed.

https://docs.python.org/3/library/functions.html#print

I suppose they could have given the option to continue using print as a statement if you don't care to override the default parameters, but having those parameters really simplified some options.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: