QuestionQ225

VerifiedData Collections – Tuples, Dictionaries, Lists, and Strings

What is the expected result printed by the following code?

Question Image

Explanation

A comma-separated sequence creates a tuple even without parentheses. Adding two tuples concatenates their elements, and printing the resulting tuple displays ('1', '2', '3', '4').

Community Discussion

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