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

My school does not offer the AP test for a certain subject, and I am having a hard time finding other schools that offer it and accept outsiders to take the tes
Compare the mass of an ice cube to the mass of the water once the cube is completely melted. A) The mass of water formed equals the mass of ice. B) The mass of
let f(x)=7x^2-8. find f(a^2)
Will mark brainliest... Solve for x. Use the completing the square method. x² + 6x = 5
What is a constitution to the government
Discuss the social and political impact of the Enlightenment. Must include the American Revolution within your discussion.
❗️❗️❗️❗️❗️❗️❗️❗️❗️❗️❗️❗️
how to find missing angles​
The capture of __________ for slavery became the early economic basis of the Carolina colony.
I need the help for number 7 plz help me as soon as possible plz help me