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

what is another name for the neolithic revolution
Find the value of the expression log27√3
if 30% of all students who enter a certain university drop out during or at hte end of their first year, what is the probability that more than 600 of this year
Describe 5 ways to represent a function?
Your company spends 15% of their budget on rent each year. Their operating budget was $45,000.
What is 0.78 divided by 3.51??? (Decimals)
9x+2y=36 9x+8y=36 What is the answer
what I 18 divided by 200 =
What are the two most reactive groups of elements in the periodic table?
The heartland of Canada, where the majority of Canadians live and work, is located A-around the great lakes and St.Lawrence river. B-around Hudson bay C-along C