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

Magnesium sulfate can be made by reacting magnesium metal with an acid . A gas is also produced . Name this gas
The yearly Penn rock-paper-scissors tournament has come down to the final series between Zach and Shaya. They play a best-of-thirteen games in rock-paper-scisso
sin ^6x-cos^6÷1-sin^2x*cos^2x=1-2cos^2x​
What is 400 + 20+9 in standard form?
​Psychological influences are internal factors that impact a consumer’s buying decision process. More specifically, ___________ is one type of psychological inf
Without authorization, Rolf contracts on behalf of Sari to have Tige paint the interior and exterior of Sari’s house. Sari ratifies the contract. Later, Sari tr
7. What is the first thing a player should decide when learning to throw? (1 point) How fast they want to throw it O What kind of glove they should use What col
Suppose a plane flies 48 miles in 12 minutes. The relationship between miles flown, x, and minutes flown, y, by the plane can be represented by the equation y =
can anyone answer this question
find the circumference of a circle where r=1.5​