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

Please help! The answer should be in g/mL
Solve for x. 6x + 9 + 4x + 2 = 21
0) through: (-2,-4), slope=5/4
Asp helppp will mark brainliest if correct answer.
Please help!!!!! Will be great full
I need help with this...
A new regulation requires the local coal plant to install filtering technology to reduce their carbon emissions by 50%. Purchasing the necessary equipment is to
helpp me pls im just trynna get to lunch and eat my hunnybun but this test taking to long <3 ( question 1)
Which part of the passage is most clearly the conclusion?
PLEASE HELP!! URGANT!