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

As you conduct your research, keep in mind that your journal entries must describe the following elements. Your name change Your clothing change Your appearance
HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Please please help help please please help
How to bend ir/er verb in Spanish
Which ordered pairs make the open sentence true? 3x+y<14 Select all the correct answers. (7, −7) (−1, 6) (3, 6) (4, −1) (6, 0)
28. Enchiladas and beans, my favorite dish, a. remind b. reminds _me of my native Mexico.
Tom Yuppy, a wealthy investor, paid $20,000 for 1,000 shares of $10 par common stock issued to him by Leuig Corp. A month later, Leuig Corp. issued an additiona
PLEASE HELP!! Find the area of the triangle QRS. Area = ______ square units
2. What benefits do each food group provide?
in disgustAng math :D