- Name: functions
- What it does: Create functions by using def (define). We run/use/call functions. Function names cannot start with numbers. Functions do three things. 1) Name pieces of code the way variables name strings and numbers. 2) Take arguments the way your scripts take argv. 3) Allows you to make your own "mini scripts" or "tiny commands". The lines after the first in the function script must be indented 4 spaces. To end the function script you must "dedent". Use *args (asterisk args) in the parenthesis to have same use as the argv parameter but for functions. Must end the def line with a colon, and then indent. The variables in functions are not connected to variables in the script.