- Functions With Inputs
- put variable inside parentheses in def statement.
- then include a value when you call the function
- parameter is what's defined in the function
def my_func (parameter) - argument is what you call the function with
my_func(argument) - Positional vs Keyword
- multiple parameters Just separate with commas
- up to now these are positional arguments.
- Keyword arguments
- math.ceil() will round a number up.
- gallons = math.ceil (area / cover)
- list.index (list_item) returns index of 1st match
- index = alphabet.index("c") # Result: index = 2