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

Explain how the value of the 7 in 327,902 will change if you move it to the tens place
what brought an end to the dominance of the silk road ?
At 10 A.M., the temperature was 71F°. At 3 P.M., the temperature was 86F°. Find the value of the slope and explain what it means.
Which describes a major challenge facing the builders of the transcontinental railroad?
do you think northerners were right to stop supporting reconstruction
Point t bisects uv. find uv if ut = 4 1/2 yards
6y-5=11 what is y PLEASE HELP
least to greatest 7/8 0.98 8/9
what is the unit rate in 49 points in 7 games
Wearing this colour after Labour Day might get you a ticket from a fashion cop! A. Pale Pink B. White C. Lime Green D. Gray