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
Question
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
Solution
1 2 4
Similar Questions
What will be printed by the following code?for i in range(5): for j in range(5, 0, -1): if i == j: print(i, end=" ")1 2 3 44 3 2 1 004
= 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
What is the output of the following code? for i in range(3): print(i) else: print("Loop finished")
8. What will be the output of the following Python code?for i in range(10): if i == 5: break else: print(i)else: print("Here")
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
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.