-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctionCheckList.py
More file actions
22 lines (20 loc) · 1.1 KB
/
Copy pathFunctionCheckList.py
File metadata and controls
22 lines (20 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Function Checklist
# Did you start your function definition with def?
# Does your function name have only characters and _ (underscore) 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 (meaning no duplicated names)?
# Did you put a close parenthesis and a colon ): after the arguments?
# Did you indent all lines of code you want in the function four spaces? No more, no less.
# Did you "end" your function by going back to writing with no indent (dedenting we call it)?
# When you run ("use" or "call") a function, check these things:
#
# 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 the parenthesis separated by commas?
# Did you end the function call with a ) character?
# Use these two checklists on the remaining lessons until you do not need them anymore.
#
# Finally, repeat this a few times to yourself:
#
# "To 'run,' 'call,' or 'use' a function all mean the same thing."