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

A customer buys 100 DEF at 70, but several months later, the stock is trading at 82.85. The customer, concerned about a possible pullback, buys 1 DEF Aug 80 put
Mary wants to buy a dress which costs $200 from the money she gets by working overtime. She has already saved up $50 for the dress. The following graph shows th
How do banks make money ?
Arctic toothfishes live in very cold water year-round. These fishes have genes that code for freeze-resistant proteins. The production of such proteins in these
Select reasons why members of phyla Acrasiomycota, Myxomycota, and Oomycota not classified in the kingdom Fungi. At some point in their life cycle, these specie
boyant force what is the defintion
To maintain proper cuff pressure of an endotracheal tube (ET) when the patient is on mechanical ventilation, the nurse should a. inflate the cuff with a minimum
Describe the components of the Web. Your friend wants to create and publish a Web page. He tells you that he wants to learn the language that is used to create
The _____ was settled between 1850 and 1890
Imagine you have an unknown sample that contains one of the four macromolecules. What could you do to determine if the sample contains lipids?