Python Worksheet 6: Iteration Part 2
Activity 1: Exploring the while loop
Use this as a model to do the following exercises:
This code outputs 0 to 10, followed by Finished!
1. Output numbers from 1 to 10
2. Output numbers from 10 to 20
3. Output numbers from 10 to 20 in steps of two
4. Output numbers from 100 down to 0 in steps of five
Python Worksheet 6: Iteration Part 2
Activity 2: Repeating Input with Loops
1. Ask the user to enter five floating point numbers and output their total
2. Ask the user to enter the names of 10 countries
Extension Task:
3. Extend your answer to Exercise 2 above so that it outputs “Bonjour!” if they enter “France”