QuestionQ215

VerifiedControl Flow – Conditional Blocks and Loops

What is the expected output of this code?

Question Image

Explanation

pop() without an index removes and returns the final item of a list. Applied to each inner list, it returns 4, 8, 12, and 16 in order.

Community Discussion

No comments yet. Be the first to start the discussion!