1. Home
  2. Data Science
  3. Python
  4. What is the result of 3.5 + 2 in Python?

Added 4 May 2024

What is the result of 3.5 + 2 in Python?

  1. 5
  2. 5.5 Correct answer
  3. 6
  4. 3.7

Correct answer

B. 5.5

17 views

MCQSEXAM

Explanation

When performing arithmetic operations between a float and an integer, Python automatically converts the integer to a float, resulting in 3.5 + 2 = 5.5.

Doubts & discussion

Not sure why the answer is B? 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