Examveda

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

A. 7.5

B. 8

C. 7

D. 5.2

Answer: Option A

Solution (By Examveda Team)

The int() and float() functions convert strings to the respective numeric types.

This Question Belongs to Python Program >> Data Types And Numeric Types

Join The Discussion

Related Questions on Data Types and Numeric Types