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 1/3x4 1/5 what's the correct answer .
The market system depends on both among buyers and among sellers.
Please help it’s due at midnight
why is the child of night and chaos so important for later development
Why did phillip the second think England belonged to spain
What’s a string instrument horn ukulele oboe saxophone
PLEASE HELP ASAP!!! CORRECT ANSWER ONLY PLEASE!!! Find the tangent of ∠R. Write your answer as an integer or as a decimal rounded to the nearest hundredth. tan(
What is racial profiling?
The probability that an international flight leaving the United States is delayed in departing (event D) is .28. The probability that an international flight le
In the diagram below, which of the following represents the equilibrium? 1)a 2)b 3)c 4)d