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

Which of the following is typically associated with a large amount of organic material in a water supply? Lower turbidity Higher phosphates Fecal coliform High
Why did Ivan III restore the Kremlin in Moscow? A. to provide work for thousands of unemployed Russian peasants B. to show other nations a symbol of Russ
This is percent of change: 15 yards to 18 yards
Which would be the least helpful for supporting interpretations about the lives of late nineteenth-century immigrants?
during the Cold War the us government developed various strategies to protect citizens during an attack. Which of the following Cold War protections are still i
current beliefs as to why people age
Which of the following is an example of improved functioning as related to the benefits of muscular strength and endurance training? a. having stronger bones b
voluntary deductions include ____. (1 point)
In what period did we see advances in technology and settled life
_______ rock can be changed directly into _______ rock with the application of heat and pressure.