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

what describes that the president Ruthford B Hayes and his administration are best known for
Dramatic shifts in the workplace call for workers that can A. return to school for a graduate degree. B. perform unskilled labor. C. learn new skills quickly
glass thermometers have the following problems?
which event sparked the protest movement known as the Arab spring
The solution inside a plant cell is approximately a 1% saline solution. In a 25% NaCl solution, the cytoplasm of a plant cell will
To check spelling errors in a document, the Word application uses the _____ to determine appropriate spelling.
Read lines 559 – 562 of Beowulf: "I served them well, / with my noble blade, as was only fitting. / Small pleasure they had in such a sword-feast, / dark thing
Questions number 2 pls
if you know two points on a line, how can you find the right the rate of change of the variables being graphed?
which of the following Best describes the events of the boston massacre