Function Comments in Python
If you need to make a comment describing what the function does, you should write it in the top line of the function body:
def func(num1, num2):
'''the function adds two numbers'''
return num1 + num2
Write a comment for the function:
def func(num1, num2):
return num1 * num2