WHILE LOOP

CLASS 9 & 10 · COMPUTER SCIENCE

The While Loopcount = 1while count <= 5:    print(count)    count = count + 1print("Done!") countcount ≤ 5 ?output 1True12True23True34True45True56False → stopDone!
STEP 1
prostudypk.com · free MCQ tests
REMEMBER
while condition:
Free test → prostudypk.com
CLASS 9 & 10 · COMPUTER SCIENCE

How do you print 1 to 5 without writing it 5 times?

The while loop in 25 seconds

Watch ↓
‹ Labs Next ›