Vidyalelo
Python · Q37

MCQs for Python Data Types and Numeric Types Chapter

Programming · Python · question 37

Q37

What is the result of int("5") + float("2.5") ?

A.
7.5
Answer
B.
8
C.
7
D.
5.2

Answer: Option A

Solution

Answer: Option A
Solution:
The int() and float() functions convert strings to the respective numeric types.