Nested While Loop Python Example