> For the complete documentation index, see [llms.txt](https://code-for-life.gitbook.io/student-resources/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://code-for-life.gitbook.io/student-resources/python-den-student-resources/worksheet-6-iteration-part-2.md).

# Worksheet 6: Iteration, Part 2

Student Resource

{% file src="/files/reLErAeZYSFgYNaG6018" %}

**Activity 1: Exploring the `while` loop**

Use this as a model to do the following exercises:

```python
count = 0
while count <= 10:
    print(count)
    count = count + 1
print("Finished!")
```

This code outputs 0 to 10, followed by `Finished!`.<br>

1. Output numbers from 1 to 10\
   \
   \
   \
   \
   \
   \ <br>
2. Output numbers from 10 to 20\
   \
   \
   \
   \
   \
   \ <br>
3. Output numbers from 10 to 20 in steps of two\
   \
   \
   \
   \
   \
   \ <br>
4. ​​​Output numbers from 100 down to 0 in steps of five\
   \
   \
   \
   \
   \
   \ <br>

​​​​

**Activity 2: Repeating Input with Loops**

1. Ask the user to enter five floating point numbers and output their total

\ <br>

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`

​[<br>](https://app.gitbook.com/o/-M_6U74XVytl1uT1MyQy/s/wAuC4Q5WQz4ea2O2b2JP/python-6-iteration-part-2)
