- Did you start your function with
def
? - Does your function name have only characters and
_
characters? - Did you put an open parenthesis
(
right after the function name? - Did you put your arguments after the parenthesis
(
separated by commas? - Did you make each argument unique, with no duplicated names?
- Did you put a close parenthesis and a colon,
):
, after the arguments? - Did you indent four spaces all lines of code you want in the function?
- Did you "end" your function by going back to writing with no indent? (Programmers call it "dedenting.")
- Did you call/use/run this function by typing its name?
- Did you put the
(
character after the name to run it? - Did you put the values you want into parentheses, separated by commas?
- Did you end the function call with a
)
character?