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

Instructions: Your friend Jo just texted you saying she’s planning to meet some guy she met online. You know this is a really dangerous idea. Write a convincing
I’ll give BRAINLIEST if correct
2nd exercise of a 5-part course. Giving 100p for each. Total of 500p. (Everything must have a procedure) 2. Convert the next rectangular functions into polar fu
Which of these statements is true: 1) It is not uncommon for most of the people in the top 5 percent of income-earners to be 45 years old and up. 2) Three-quar
Can someone help me out with this question fast!?!?!
62. Triangle ABC has vertices as shown. What is the area of the triangle? A. √72 square units B. 12 square units C. √288 square units D. 24 square units A(1,4)
How do you drown a blonde?
can someone help me please with the ixl problem ??? If x < 0 and y < 0, where is the point (x, y) located?
Which graph represents the linear equation below y+1=2/3(x-6)
How do you drown a blonde?