Pergunta
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
Solução
Verification of experts
3.7130 Voting
PabloMestre · Tutor por 5 anos
Responder
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.
Clique para avaliar: