Q. Which of the following is False regarding loops in Python?
-
(A)
Loops are used to perform certain tasks repeatedly.
-
(B)
B. While loop is used when multiple statements are to executed repeatedly until the given condition becomes False
-
(C)
While loop is used when multiple statements are to executed repeatedly until the given condition becomes True.
-
(D)
for loop can be used to iterate through the elements of lists.
β
Correct Answer: (B)
B. While loop is used when multiple statements are to executed repeatedly until the given condition becomes False