justaguy220
justaguy220 justaguy220
  • 02-11-2020
  • Computers and Technology
contestada

How do I add decimals in python?

Respuesta :

Cytokine
Cytokine Cytokine
  • 02-11-2020

x = 0.6

y = 0.4

print(x + y)

This will output 1.0 to the console.

You could also just do:

print(0.6+0.4)

This will yield the same result.

Answer Link

Otras preguntas

write an essay about the effects of poverty
what is one half of earth
What stars are cooler than orange main sequence
what is the value of the expression? 9^8/9^-4 x 9^10 a. 9^−48 b. 9^−2 c. 9^2
9 m/s to a total stop. what is the objects acceleration
although is a what conjunction
Maintaining a healthy diet during times of stress A: will make it more difficult to handle stress. B: is impossible to do because everyone needs to eat more dur
they grew up on th out side of society. they weren't looking for a fight, they were looking to belong
Lowell bought 4 1/4 pounds of apples and 3 3/5 pounds of oranges.How many pounds of fruit did Lowell buy
which of the following best describes the social characteristics of ancient israel after the fall of judah in 586 b.c.e? a. 12 tribes unified into an independen