Question
Practice excercise 2 1 point possible (ungraded) 2. You want to add two numbers. One of them has a decimal point. Which data type is it? Float String Integer Complex
Solution
3.7
(130 Votos)
Pablo
Mestre · Tutor por 5 anos
Resposta
The correct answer is Float. When you want to add two numbers and one of them has a decimal point, it indicates that the number is a floating-point number, which is represented by the data type Float in programming. Floats are used to represent real numbers with a fractional part, and they can be used for arithmetic operations involving decimals.