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

make a triangle with 5 smaller shapes
How many territories did alexander the great conquer?
Which of the timelines above accurately depicts the order of historical events in Nazi Germany? A. One (1) B. Two (2) C. Three (3) D. Four (4)
An experiment finds that teens who play video games have increased critical thinking skills. What might have been the hypothesis for this experiment A)video gam
the major goal of the civil right movement of the 1960's was to
Qual técnica os renascentistas desenvolveram
What is the central idea of christmas sparrow by billy collins?
​any paid form of nonpersonal presentation and promotion of​ ideas, goods, or services by an identified sponsor is called​ ________.
Using your knowledge of toots, choose the best word to complete the following sentence
Which of the following resulted from the plessy v. Ferguson decision