loops — predict the output8 / 9
while, break, and the infinite loop ai ships
Write a while loop that starts with the number 10 and counts down by 2,
printing each value on its own line, until the value is no longer positive.
Expected output:
10
8
6
4
2
⌘↵ runs the editor.
Booting Python…
Output
[promptdojo:~]$ _