While loop examples in Python as well as tasks with solutions. While loops for validation, while loops for password checking and while loops in game design
Below is a presentation on while loops. It introduces the concept of while loops, explains what they are with several examples and also presents some additional information and challenges with solutions. Go through the presentation carefully before then going on to the challenge below
You can either edit and code online in repl.it (click on the link on the right which says EDIT on repl.it. Alternatively, you can simply cut and paste the below into your own python file
A sample flow chart (design) for this particular challenge could look like:
Test No. | Description | Test Data(input) | Expected Outcome | Actual Outcome | Further Action? |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |