I'm currently reading python code that is using strings as comments. For example, here's a function
def xyz(x):
"""This is a function that does a thing.
Pretty cool, right?"""
return 0
What's the point of using strings as comments? It seems really strange. The code compiles, but it's very confusing.
multi linecomments !docstringand it is interpreted by python's help/documentation system, tryhelp(xyz). Usually you would describe the types of arguments this function takes and what to expect as a return.