Choose the correct output for the following Python code. tuple_var_mix =…
2024
Choose the correct output for the following Python code. tuple_var_mix = (“Example”, 1, “Tuple ”) print (tuple_var_mix)
- A.
{Example, 1, Tuple}
- B.
(Example, 1, tuple)
- C.
('Example', 1, 'Tuple')
- D.
[Example, 1, 'Tuple']
Attempted by 101 students.
Show answer & explanation
Correct answer: C
Printing the tuple `('Example', 1, 'Tuple')` displays it with parentheses and quoted string elements.