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

y = 2x + 3 2y = 4x + 6 The system of equations has _____ solution(s). A. no B. one C. infinite
A deficiency of vitamin d in adults can result in what?
Identify the steps in the rain shadow process.
which passage is an example of rising action in edgar allan poes the black cat. A. But to morrow i die, and to day i would unburthen my soul. B. I took from my
How did Jim Crow laws change over time? A. They expanded to include public transportation and schools? B. They expanded to include restaurants, parks, and theat
If a given power plant released so2 gas with a volume v of 1200 m3 at a density ρ of 2.86 kg/m3 at standard pressure and temperature, how many moles n of so2 ar
Which net represent the solid?
If the change of enthalpy of this reaction when proceeding left to right is +14 kcal, which chemical equation is correct? N2O4 2 NO2 + 14 kcal N2O4 + 14 kcal
How does elections impact society
A farmer grows vegetables on seven acres, fruit on six acres, and flowers on two acres. Out in his fields, he finds a ladybug. To the nearest tenth of a percen