Q. Which loop is best for iterating over a sequence?

A
while
B
for
C
do-while
D
repeat
Solution:

The for loop is ideal for iterating over sequences like lists or ranges.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!