8
AssignmentMultiple Choice

Iteration

Question 8 • VA-Information Technology Fundamentals B

A for-loop statement can iterate over many items in

Answer
A
a function.
B
a variable.
C
a list.
D
a pass statement.

Explanation

A for-loop repeats its code once for each item in an iterable collection. A list is a common collection of items that a for-loop can iterate over; a function, a single variable, and a pass statement are not collections of items in this context.

AI-written and checked against the verified answer.

Previous
Next