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

In the group of jobs below which does not belong? Secretary Stock Clerk Accountant Driver Receptionist
i need help with this can someone help me with it
can someone please help me out
Find the measure of the central angle with a radius of 18 inches and the area of a sector measuring 162π square inches
the sum of two numbers is 5000. if 20% of one number is equal to 30% of other no. find the number
how many terms are in the expansion (x y)10.
15x 2x can be written as _____. x(15 2x) (15 2)x (15x 2x)x
What are two manual labor jobs that were performed in the past that could contribute to the respiratory issues of today?
All are examples of cross-contamination except
Which one of these items is a nonrenewable resource? a. plant b. tree c. gasoline d. fish