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

How should the world respond to the threat of the Islamic state?
What is generally the reason for a company to issue bonds? A) It promotes good will with the public. B) It serves as a means to raise revenue. C) It raises t
When did kindergarten become a requirement in Ohio, and why?
The triangles are similar. Show how they are similar and justify your answer. Is the dilation an enlargement or a deduction? How do you know? What is the scale
What was the main reason why the southern economy remained largely agricultural?
PLEASE HELP ME WITH QUESTION!
The bottom of a 30 foot ladder is 7.5 feet from the bottom of a wall of a building. Explain how you can find the height at which the ladder touches the wall. Th
Is (2,-3) a solution for the linear equation y = 4x - 5? Justify your answer
a class contains 8 men and 12 women. which fraction represents the ratio of women to all the students in the class?
find the perimeter of the figure. each unit is 1 cm​