Programming Using Python Day 3 Presentation (page 4)
Think you've got it?
Programming Using Python Day 3 Review
1.What is decomposition?
2.What is the process called where multiple programmers may decompose a project into separate functions that they can work on independently?
3.What are modules in Python?
4.The provided code determines if a number is prime or not. Convert this code into a function is_prime(test_num).
5.Write a function that prints out every number from 0 to an input parameter n (inclusive).
6.What are functions for? When would you want to use a function?
7.What is the purpose of a trace table?
8.Complete a trace table for the following code:
python<br>n = 5<br>while n > 0:<br> n -= 1<br> if n == 3:<br> print("n is 3")<br>n += 10<br>print("n is " + n)<br>
9.Describe what a storyboard could look like for an adventure computer game with 8 different worlds.