Second Practicum: Friday, October 28th

• The practicum will allow you to demonstrate your ability to use Python to solve problems. The assignments to date should help reinforce your understanding of the material.
• One question will require you to understand functions.
• One question will require you to understand selection.
• One question will require you to be able to use the random module.
• One question will require you to understand how to use the online module documentation - link.
• You may bring one 8.5 inch by 11 inch sheet of double-sided notes.
• You may use a lab computer to develop your answers. You may only use the internet to access the interactive python textbook, the online python documentation or previous python programs that you (or you and your partner) wrote for this course.
• To be successful on the exam, strive to understand the Python material and be able to use it to solve small problems.

Sample Questions

1. Fall 2015 Practicum 2.
2. In the turtle module, there are two names for the same function that makes the turtle invisible. What are these two names?
3. Write a function average(number_1, number_2, number_3) that returns the average of the three numbers. Show an example of calling the function.
4. Write a program that asks the user for his or her age. If the age is between 13 and 19, print teenager. If the age is between 20 and 64, print adult. If the age is 65 or older, print senior citizen. Otherwise print child. Solve the program using one if, elif, else construct.
5. Write a function named practice_addition that might be used to help a child practice addition. The function should generate one random addition problem, using two numbers between 1 and 9 (e.g. What is 3 + 9?). The function should return True if the person answers the problem correctly and False if not.