Change: the proposed duplicate does not answer my question, since I am primarily concerned with the differences in Python specifically. The proposed duplicate is much broader than this question.
I recently started learning Python. I am currently reading "Learn Python the Hard Way." I have some experience with special programming, but I will return to the beginning to learn everything from scratch this time.
One of the first lessons in the book is concerned print, and the author gives various instructions for using it in Python 2.7, for example:
print "This is fun."
I was wondering what is technically called printhere in terms of programming. Some studies have found this, PEP-3105
In this case, it is done in order to make the printfunction:
The printed expression has long appeared in lists of dubious language functions that should be removed in Python 3000, such as the Guido Presentation of "Python Regrets" 1 . Thus, the goal of this control panel is not new, although it may become a subject of debate among Python developers.
Thus, it printis an operator in Python 2.7 and a function in Python 3.
But I could not find a clear definition of the difference between statementand function. I also found this by the person who invented Python, Guido van Rossum, in which he explains why it would be nice to make print a function instead of an expression.
, , , - , . print Python 2.7? ?
Python?