# Iteration While Nested Loop

**URL:** <https://discuss.python.org/t/iteration-while-nested-loop/109277>\
**Category:** Python Help\
**Created:** [September 29, 2026, 6:40pm UTC](https://discuss.python.org/t/iteration-while-nested-loop/109277 "2026-09-29T18:40:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmericanFailure](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@AmericanFailure](https://discuss.python.org/u/AmericanFailure)\
**Post date:** [September 29, 2026, 6:40pm UTC](https://discuss.python.org/t/iteration-while-nested-loop/109277/1 "2026-09-29T18:40:34Z")

</div>

Can someone help me figure out this nested while loop

This is what I was given to do:

 ![Screenshot 2026-09-29 143844](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/a/5/a52b3cf18598e3d73a87c532135c06432d727468.png)

And this is what I have so far:

 ![Screenshot 2026-09-29 144014](https://us1.discourse-cdn.com/flex002/uploads/python1/original/3X/3/e/3ee8a4c0d89abe7c9a8ed2feda6265f77c16d159.png)
