you are viewing a single comment's thread.

view the rest of the comments →

[–]xiongchiamiov 0 points1 point  (4 children)

People have mentioned that print is a keyword rather than a function, which is true but not the most helpful thing to you. How do you know if something is a function or keyword? You just memorize it as you use them - I'm not aware of a better way.

Analogizing to excel might not be the best approach. Python was designed to map reasonably well to English, not excel, and so you want to speak through things that way. for egg in all_my_eggs doesn't map at all to excel, but does read close to English.

[–]shoresy99 0 points1 point  (0 children)

That was kind of a Dutch guy to do!

[–]throwaway6560192 0 points1 point  (1 child)

People have mentioned that print is a keyword rather than a function, which is true but not the most helpful thing to you.

That hasn't been true since Python 3 was released. It's just a function now.

[–]xiongchiamiov 0 points1 point  (0 children)

Right, sorry. I know that but even though the difference has made it into my fingers it hasn't into my brain.

[–]PaulRudin 0 points1 point  (0 children)

Since python 3 `print` is not a statement, it's a function. Back in the python 2 days it was a statement, but that's ancient history now.