def · Parameters · Return Values · Scope · Why Use Subroutines?
return to send a value back — it can be stored in a variable or used in an expressiondefglobal x inside a function to modify a globalarea that takes the length and width as parameters and returns the area of a rectangle.def in Python