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)

  1. A.

    {Example, 1, Tuple}

  2. B.

    (Example, 1, tuple)

  3. C.

    ('Example', 1, 'Tuple')

  4. 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.

Explore the full course: Rssb Senior Computer Instructor