QuestionQ87

VerifiedControl Flow – Conditional Blocks and Loops

What output is expected from the following code?

Question Image

Explanation

The nested loops compare every number in data with the current value of res and retain the smallest one. The minimum value in the lists is 3, so print(res) produces 3.

Community Discussion

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