Twa kɔ nsɛm atitiriw so
Log in
Sign up for FREE
arrow_back
Laabri

Python While Loops

star
star
star
star
star
Last updated almost 6 years ago
4 Nsɛmmisa
1
Asemmisa {{asɛmmisaAhyɛnsode}}
1.

Which of the following lines of code would reassign a new value to the condition variable?

1
1
1
Asemmisa {{asɛmmisaAhyɛnsode}}
2.

These 2 lines of code would both produce the same results:

condition = condition + 1

condition += 1

Asemmisa {{asɛmmisaAhyɛnsode}}
3.

How did the computer know to stop printing after it printed number 9?

Asemmisa {{asɛmmisaAhyɛnsode}}
4.

Why didn't the program print the number 10?