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 555000 rounded to the nearest ten thousand
Is colony a collective noun
What do the words dissent, persecute, and tolerance have in common
What is a difference between starch and glycogen? A.) Starch stores energy, and glycogen provides structural support. B.) Starch is found in plants, and glycoge
A fair attended by 755,082 pepole altogether. what is the number rounded to the nearest ten thousand
A plant grows 16 inches every 4 months. How much will it grow in a year? 96 inches 32 inches 64 inches 48 inches
Which is an effective way to resist peer pressure to do something you're uncomfortable doing?
Which word in the sentence is a participle? Do not lean on the painted walls. a. painted b. Do c. on d. lean
What is 122.5 divided by 49
What did england import from the colonies to make furniture