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

4.30 makeup;40% discount;6% tax
Your family needs a set of 4 tires.Which of the following deals would you prefer?Explain. A.Buy 3.get one free B.20% off C.25% off
What is one specific form of simple diffusion??
From the Canterbury Tales, The wife of Bath's tale The unhappy Midas grew a splendid pair/Of retrices ears...." In the Wife of bath's tale for what purpose does
An easy way to make a document available to several people is by
what is the value of the digit 2 in 0.025
Which cellular structure performs the following functions?• supports and shapes the cell• helps position and transport organelles• assists in cell division and
In a classroom of 33 students, the ratio of boys to girls is 3:8. How many boys are in the class?
What can you infer about Macbeth's mental state from his reaction to his wife's death?
what is w in w+3 3/8=1 5/6