How to use While loop inside a function in python
Answers
Answered by
2
- Python While Loops
- ❮ Previous Next ❯
- Print i as long as i is less than 6: i = 1. while i < 6: print(i) i += 1. ...
- Exit the loop when i is 3: i = 1. while i < 6: print(i) if i == 3: ...
- Continue to the next iteration if i is 3: i = 0. while i < 6: i += 1. ...
- Print a message once the condition is false: i = 1. while i < 6: print(i) ...
- ❮ Previous Next ❯
Similar questions