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

Who is that with a neck and no head, two arms and no hands?
Which of the following statements is true? A) The United States offered to pay Mexico for the western land. B) Americans believed that the western land belonged
Question 5 of 5 Which of the following statements about Masters programs is not correct? A. Everyone on a Masters team has to compete. B. The social life is as
MORE HELP PLZ Which group of organisms evolved first? amphibians fish reptiles mammals
Problem Solve for x x + 5 = 10 ——- 2
Money in a particular savings account increases by about 6% after a year. How much money will be in the account after one year if the initial amount is $100?
please answer it numerical methods and using graphs to find approximate solutions use the graphs to approximate the solution
calculate the mean for 31 29 33 37 43 38 33 40
HELP NOW! BRAINLIEST, PLEASE DUE THIS WEEK DONT ANSWER FOR POINTS :( Based on the descriptions, determine whether the individuals follow the Theravada or the Ma
Which of the following is not true about continental crust? A. It forms the continents B. It is found beneath the ocean C. It is up to 100 kilometers thick D. I