Vidyalelo
Python · Q17

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 17

Q17

What is the result of 5 + 3.0 ?

A.
8
B.
8.0
Answer
C.
53.0
D.
53

Answer: Option B

Solution

Answer: Option B
Solution:
When an integer and a floating-point number are added, the result is a floating-point number.