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

6/7 and 18/21 are the ratios equivalent.
X over 8 is greater than or equal to 1 . Solve & graph
What is 2/3 of 18? What is 2/3 of 24?
Good 6 word memoir for maya angelou I know why the caged bird sings
if Justin is 2 years older than ethan and in 9 years the sum of their ages will be 38 how old are they now? Can someone please help me with this question
what are 2 important jobs of photosynthesis
What is 2.06% written as a decimal ?
please help! i need to write sentences with the words comically and tropically
Which one of the following sentences uses the comma or commas correctly? A. Giving it their best none of the swimmers broke, John Gore’s, record. B. Johnson
¿Qué no debe estar en la mesa? A. el tenedor B. el plato C. la sal D. el camarero