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

Towns Along the Mississippi River in 1850 • Vicksburg, Mississippi Memphis, Tennessee • New Orleans, Louisiana . The invention of the steamboat helped establish
Mr. Tully gave a math test to his class. The highest score was 100 and the lowest score was 72. What is the range of the data?
It’s due today please help me
That's great Ron yelled back. Wait till you see a lot more than just one
someone please help. Madison's bicycle wheel has 28 spokes. The diameter of the wheel is 24 inches. What is the approximate arc length between each pair of spo
The class found many nonliving things in the sample of pond water. Which of these is a way that the students can tell the difference between living and nonlivin
I need help I’m very confused
Explain how to graph a line from the following equation A. 2x-1=y B. Y=-9/2x-2/8
helppppp plssssssss..........
school compitition in your district​