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

How did air fields come to Georgia?
The ratio of men to women working for a company is 5 to 7 if there are 133 women working for the company what is the total number of employees
In a month with 31 days, Google featured Doodles on 18 days.What percent of the month was this?Round to the nearest whole percent
Is war inevitable at this point?
Refer to The Call of the Wild to answer the question. From the Call Of The Wild What does the Lost Cabin symbolize for the men in the book? safety warmth power
Which is the most efficient way to avoid DNA mutations from UV radiation?
x^2 when x=5 how to work it out ​
put this in your own words One of the driving forces behind this competition for colonies was an economic policy
select the pair of perpendicular segments from the figure below ​
Use the figure to the right. Find x