1. Home
  2. Data Science
  3. Python
  4. What will be the result of (1, 2) + (3, 4) in Python?

Added 4 May 2024

What will be the result of (1, 2) + (3, 4) in Python?

  1. (1, 2, 3, 4) Correct answer
  2. (1, 2) (3, 4)
  3. (4, 3, 2, 1)
  4. Error

Correct answer

A. (1, 2, 3, 4)

13 views

MCQSEXAM

Explanation

The + operator concatenates tuples, so (1, 2) + (3, 4) results in (1, 2, 3, 4).

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Python MCQs

Practise all Python MCQs

Similar MCQs