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

Before the Civil War, the cotton plantations of the ___ South depended on British textile companies for their markets.A.antebellumB.anteriorC.avant-garde
What is the correct term for a release of an ovum in the female reproductive system?
Given that 500w = 3 * 700, find the value of w.
Alison wants to find out how much time people spend reading books. She is going to use a questionnaire. Design a suitable question for Alison to use in her ques
An astronaut who weighs 126lb on Earth weighs only21lb on the moon. How much would a person who weights 31lb on the moon weigh on Earth?
I forgot what are homophones.Does anyone know what's a homophone.
Before the Civil War, the cotton plantations of the ___ South depended on British textile companies for their markets.A.antebellumB.anteriorC.avant-garde
What was the Islamic Golden Age?
If (3+y)/y=7, then y= Please help :)
a swimming pool holds 375,000 liters of water. two large hoses are used to fill the pool. the first hose fills at a rate of 1500 liters per hour and the second