Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 916 Bytes

function checklist.md

File metadata and controls

17 lines (14 loc) · 916 Bytes

Function Checklist

  1. Did you start your function with def?
  2. Does your function name have only characters and _ characters?
  3. Did you put an open parenthesis ( right after the function name?
  4. Did you put your arguments after the parenthesis ( separated by commas?
  5. Did you make each argument unique, with no duplicated names?
  6. Did you put a close parenthesis and a colon, ):, after the arguments?
  7. Did you indent four spaces all lines of code you want in the function?
  8. Did you "end" your function by going back to writing with no indent? (Programmers call it "dedenting.")

When you run ("use," or "call") a function, check these things:

  1. Did you call/use/run this function by typing its name?
  2. Did you put the ( character after the name to run it?
  3. Did you put the values you want into parentheses, separated by commas?
  4. Did you end the function call with a ) character?