Python - While Loop
Which of the following while loops correctly prints all even numbers from 2 to 10 inclusive?
Which of the following while loops correctly prints all even numbers from 2 to 10 inclusive?
counter = 2
while counter <= 10:
print(counter)
counter += 2 correctly prints even numbers 2,4,6,8,10.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions