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

I have to make three videos for physics about Newton's three laws of motion but I don't want to be in the videos or talk in them. Any ideas on how I could do th
Please help Fast I do not know
Que significa Se hunde volando en el cielo?
what is the theme for geri's game pixar short film​
what are spreadsheets in a excel workbook called? A. pages B. notepads C.graphs D.worksheets
Solve the inequality 2x−y⩾−5 for y. Which inequality represents the inequality in slope-intercept form?
5 A line passes through the point (-4, 2) and has a slope of Write an equation in slope-intercept form for this line.
task card 18 Katie ran 8 miles north and then 5 miles west. What is the shortest distance, to the negrest tenth of a mile, she. must travel to return to where s
the movie theater has 250 seats 200 seats were sold for the current showing what percent of seats of seats are empty
Solve for s. s 3 = 2