Q51. Which statement is optional in an if structure?
Learn Mode
Practice & Learn
View correct answers for each question to enhance your understanding.
Q52. What will happen if a while loop condition is always true?
Q53. Which keyword is used to exit from a function or loop?
Q54. What will be the output? for i in range(3): print(i)
Q55. What is the correct syntax of a while loop?
Q56. Which loop executes at least once?
Q57. What does the continue statement do?
Q58. What does the break statement do?
Q59. Which loop is used when the number of iterations is known?
Q60. What will be the output? if 5 > 3: print('Yes')