Question 24 • VA-Information Technology Fundamentals B
The len() function returns the number of elements in a stack. A loop can use that count to determine how many elements it needs to process. It does not print or remove elements by itself.
AI-written and checked against the verified answer.