Which of the following will not run the loop statement an infinite number of…
PYQ EMRS TGT/PGT (ESSE) 2023
Which of the following will not run the loop statement an infinite number of times in Python?
- A.
while 21 % 2:
print("ALWAYS")
- B.
while 21 // 2:
print("ALWAYS")
- C.
while True:
print("ALWAYS")
- D.
while 1 % 1:
print("ALWAYS")
Attempted by 2737 students.
Sign up free to check your answer
Sign up freeLoading lesson…

