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

[LQ 6.1,6.5] What is the output of the following code?
i =0
while i =20:
i +=1
if i %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
[ LQ 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!