Happy birthday! An introduction to functions - Answers
Q1. Type the code in and get it working. See the Downloads section.
Q2. See the Downloads section.
Q3. If you call a function before it is declared, you will get an error that says the function isn't defined. You must define functions before you use them.
Q4. See the Downloads section.
Q5. Python is case sensitive. If your functions begin with capital letters, and you call them using small letters, then you will get an error.
Q6. Functions are reusable. Once written and tested, they can be put into libraries and shared. Functions are easier to write because they usually just carry out one job per function. They make programs easier to read. If a team has to work on a big program, it is easier to distribute the work amongst the team and to track progress of the project.