Quiz on Python Loops



1. What is the primary purpose of loops in Python?
2. Which loop is used when the number of iterations is known?
3. What keyword is used to exit a loop prematurely in Python?
4. What function can be used to iterate over a sequence in a for loop?
5. Which statement is used to skip the current iteration of a loop?

Advertisements