What you see is a document line or a short line.
A docstring is a string that should document the subject to which it is bound. In your case, it is bound to a function, and as such it is supposed to document the function. You can also have docstrings for classes and modules.
docstrings, , ( ). docstring __doc__
:
>>> def printme( str ):
"This prints a passed string into this function"
print str
>>> printme.__doc__
'This prints a passed string into this function'
help()
:
>>> help(printme)
Help on function printme in module __main__:
printme(str)
This prints a passed string into this function
docstrings, , docstrings, "" , . , , , :
def printme (str):
'''
Print the string passed in the `str` argument to the
standard output. This is essentially just a wrapper
around Python’s built-in `print`.
'''
print(str)
docstring PEP 257.