= 0while i < 5: if i == 2: i += 1 continue else: print(i,end = " ") i += 1Options: Pick one correct answer from below0 1 2 3 40 1 3 4Runtime Error1
Question
= 0while i < 5: if i == 2: i += 1 continue else: print(i,end = " ") i += 1Options: Pick one correct answer from below0 1 2 3 40 1 3 4Runtime Error1
Solution
0 1 3 4
Similar Questions
Select the correct answerWhat will be the output of the following Python program?i = 0while i < 5: print(i) i += 1 if i == 3: breakelse: print(0)Options0 1 20 1 2 0errornone of the mentioned
What will be the output of the following code?for i in range(1,5): if i == 3: continue else: print(i,end = " ")Options: Pick one correct answer from below1 2 3 41 2 41 2 3 4 51 2
What will be the output of the following Python program? i = 0while i < 5: print(i) i += 1 if i == 3: breakelse: print(0)error0 1 2 00 1 2none of the mentioned
What will be the output for the following code?i=0while(i<3): j=0 while(j<3): print(i,j,end=" ") j+=1 print()0 00 10 20 0 0 0 1 2Infinite loopError
Select the correct answerWhat is the output of the following program : p = 2while (p < 9): print(p) p-- print (p+4)Options2 1 0 -1 -22 6 2 6 2Error2 3 4 5 6
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.