MulaiMulai sekarang secara gratis

Breaking a while loop

You saw in the video that if a condition continues to be met then a while loop will run indefinitely!

Can you remember the ways that you can stop a while loop from running forever? Select the two answers that apply.

Latihan ini adalah bagian dari kursus

Introduction to Python for Developers

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga