QuestionQ267

VerifiedData Collections – Tuples, Dictionaries, Lists, and Strings

What output is expected from the following code?

Question Image

Explanation

The reversed list starts with 3, making the tuple repetition count 3 - 3 = 0. Multiplying a tuple by zero produces an empty tuple.

Community Discussion

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