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

If you describe methane as a gas that easily catches fire, you are describing a ________. (a) state of matter (b) physical property (c) cheical property (
I sit in the chair. Yo siento en la silla. Yo me siento en la silla. Yo se siento en la silla. Yo sientome en la silla.
Which intervals are most appropriate for constructing a frequency table for the data set?  45   53   60   36   22   27   47   68   33   51   55   29   28   45
why is it cold in new york
please help on this one
What impact did the franksh leader charles martel have on Christia n europes relations with muslim spain in the eighth century
Which tool might a software developer or system administrator use to register a component of an application in the windows registry?
A new herbal supplement is on the market that claims to build immunity and prevent illness. The best response to this claim is to:
He needs a down payment of $3000. If he saves $340 each month, about how many months will it take him to save the down payment?
I need help with this please