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

Divide and express the result in standard form. 8/7-i
why did texans drive their cattle to towns in the midwest
Express 9.062 as a mixed number in the simplest form.
what is 20/7 as a mixed number what is 9/4 as a mixed number what is 22/5 as a mixed number what is4/3 as a mixed number
The cause of the sun rising and setting in the sky is the earths rotation . What is the affect
by what length is is 0.5 m less than 10.05
what is the largest prime factor of 34
How to make a mixed fraction
What is (7/12)/(5/9)? In simplest form..
Juan Ramirez sells suits in a major department store on weekends. he earns a commission of 5 percent on the first ten suits, and if he sells more than ten, he e