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

Amino acids are large molecules formed by long chains of proteins. Select one: True False
"You have to be cruel to be kind," is a quote from "Like the Sun." It is an example of what? Paradox Conflict Irony Suspense
According to Freud, what do dreams do? reveal urges and desires mask the unconscious mind freely explore your conceptions and perceptions both A and B
answer this question
What is one major role international organizations play in the global economy? A. Requiring poor countries to rely on local economies B. Offering aid to develop
What is the value of X? Enter your answer in the box ASAP
What were some of the literary themes used in morality plays (Mark all that apply) Virtue always won It was presented a moral lesson Dealt With the lives of the
evaluate a = log(0.1) and b = ln(e^3)
Please someone help Me with this problem. I really need help.
5:36, 2:9, 3:18 , 1:3 which ratio is the largest?