Question: [ LO 6 . 1 , 6 . 5 ] What is the output of the following code? i = 0 while i 2 0

[LO 6.1,6.5] What is the output of the following code?
i=0
while i20:
i+=1
ifi%2==1
continue
print(i)
a. The numbers 1 through 20 get printed
b. All odd numbers between 1 and 20 get printed
c. All even numbers between 1 and 20 get printed
d. The numbers 0 through 20 get printed
[ LO 6 . 1 , 6 . 5 ] What is the output of the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!