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

essay about worst vacation?​
Which sentence best expresses the central argument of President Barack Obama's Back to School speech?
Solve for x: 2^x=17^x​
What do you think it means if your freind stops hanging out with you and starts hanging out with new people
25POINTS As on all its sides a kitchen-match darts white flickering tongues before it bursts into flame: with the audience around her, quickened,
In January 2004, NASA landed exploration vehicles on Mars. Part of the descent consisted of the following stages: Stage A: Friction with the atmosphere reduced
Which of the following is a common technique advertisers use to mislead consumers into using "fad diets" to achieve optimal health and fitness?
Why doesn't semen enter the urinary bladder during ejaculation? Why doesn't semen enter the urinary bladder during ejaculation? The smooth muscle sphincter at t
The graphs below illustrate change in a lizard population over time. Which process most likely led to the change in the lizard population? A natural selection
how many voices do latin verbs have? a. two b. four c. six d. eight