Question 22 • Introduction to Information Technology - EL3701
The len() function returns the number of elements in a sequence, which can be used to determine how many times to repeat an iteration. A for loop can iterate over the sequence or use its length to set the number of repetitions. The correct choice is “a for loop.”
AI-written and checked against the verified answer.