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

Find the angle that makes them supplementary. ∠3=50 so ∠4= ∠5=70 so ∠6= ∠7=140 so ∠8= ∠9=90 so ∠10= ∠11=115 so ∠12= please help i will give brainliest and t
hi how are yall? me im stress the out
Create a function called biggestNum that returns the largest number in an array of integers. The function is passed only one parameter, an array. In main, ask t
Can you guys help me please ASAP
A telephone pole is 15 ft tall. A bird is feeding 6 ft away from the pole on the ground. If the bird flew to the top of the pole, how far would it fly?
PLEASE HELP!!!! I’ll make you the brainlyest PLEASE!!!!!
Whose ideas were borrowed for the writing of the declaration of the rights of a man and citizen?
Help please ! ASAP !!!!!!!
11. Medication reconciliation involves the process of accounting for patient medications and related information, then comparing with the medical doctor's recor
54437475+6375322464366475456