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

kelli calls her grandmother every month.Every other month,kelli also calls her cousin.if kelli calls her cousin in january,how many calls kelli have made to her
What is the capillary action of water?
Compare Dobereiner’s triads to the modern periodic table. What aspects of his idea agreed with the modern table and what aspects did not
what can you infer about Sergei's character based on the way he uses his first two wishes
How much will 25 pounds of bananas cost of each pins is .59 cents
President Wilson's Fourteen Points outlined a few general principles, some specific demands about national borders, and most importantly, _____.
How did southerners feel about the federal government paying state war debts, and how did Hamilton change their minds? ... of the nation's government? Hamilton:
To win a game, you need at least 45 points. Each question is worth 3 points. Write and solve an inequality that represents the number of questions you need to a
Which of the following is an example of a solution? A.fog B.soda water C.milk D.mud
what are scale drawings? can you give an example?