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

The unknown vector v satisfies b - v = λ and b x v-c, where λ, b, and c are fixed and known. Find v in terms of λ, b, and c.
What number when increased by 15% becomes 299 Please help willl mark brainest!
What do you call all the students at school?
Which describes how a person most likely uses latitude and longitude lines? ​
Together, Chelsea and Essence have $192. If Chelsea has a third of the amount of money that Essence has, find out how much money each person has individually.
We have two varieties of concrete that we can mix together. One is 5% water and 95% concrete mix, and the other is 20% water and 80% concrete mix. We want to en
When you gain awareness, knowledge, and build health skills, you are increasing your o A. health literacy. B. health triangle. O C. risky behavior. OD. heredita
simplify 2(4x-3z)+3(2x+4z)​
i dont understand ?​
The left and right page numbers of an open book are two consecutive integers whose sum is 283. Find these page numbers