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

Kyle’s parents told him that for every 5 hours of homework or reading he completes, he will be able to play 3 hours of video games. His friend victor’s parents
In Gilded Age America, dissatisfaction with the new social order extended beyond the working class and into the middle class. Some of the most popular works of
Lizzie buys 8 books and pays with a $50 dallor bill. Alex buys 3 books and pays with a $20 dallor bill. Lizzie and Alex both get the same amount of change. How
I need help please and thank you
Name two coordinates that are on the line: [tex]y = 12[/tex]Name two coordinates that are on the line: [tex]x = -5[/tex]
I need help please and thank you
You moved within a short walking distance to work and you no longer need to spend the $20 per week budgeted for bus fare. Considering this, what is your new wee
what are some fees banks charge for having a checking account
Find the slope of the line between (-3,6) and (-5,9 PLEASE SHOW WORK! THANK YOU
which two events were caused by the British winning the French and Indian war