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

Which Expression is Equivalent to (f+g)(4)? A) F(4) + G(4) B) F(X) + G(4) C) F(4 + G(4)) D) 4(F(X) + G(X))
Please state the equation of the line in standard form
can you please help me
The major advocate of predestination was Martin Luther. True False
two number cubes are rolled. Deterimine the number of ways that you could get a sum that is less than 5. The number cube is out of 6
Look at the attachment! This is algebra. 10 points!​
HELP DUE TODAY WORTH 87 POINTS
Evaluate the expression. {[(30 – 60) ÷ (-30)]² – 15} ÷ (-7) What is the value of the expression?
PLS answer quick Which formula can be used to find the volume, V, of the composite solid figure represented below? OA V = r2h + ³ r²h + 3 r²2h + 3r3 r²h + ³ OB
Complete each sentence with the correct subjunctive or indicative form of the verb in parentheses. 1. Desean que yo (pretender) entender la explicación. 2. Te s