Take something complex, give it a name and treat it as a whole without worrying about its details.
Assignment
To bind a name to a value.
Define Function
To bind a name to a expression.
Squirrel the body under the function, which means to hide in a safe place.
Return value
ATTENTION: IT CAN RETURN MUITIPLE VALUES.
def divide_exact(n,d):
return n // d , n % dDefault Value:
def square(x=10):
return x ** 2