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

How much time should be allowed for a 605-mile car trip if the car will be traveling at an average speed of 55 miles per hour? A. 8.75 hours B. 10.5
What does the term “taxation without representation” mean?
When you are in _______ cell in a row of a table, pressing Tab moves the insertion point to the first cell in the next row. A. the center B. any
A blank is an organized collection of data in digital format that helps users to keep track of information
The iupac name for ch3–ch2–c ≡ c–ch3 is ________
For the circuit shown in the figure above, the correct procedure for measuring the resistance value of R1 is to A. connect the multimeter between points D
Individuals with an internal locus of control believe that their actions will make a difference in their health. a. True b. False
Identify and summarize five major laws that deal with equal employment opportunity.
Sam shared with his class that he lives on Oak Street. Sam is likely how old? A. One year old B. Two years old C. Three years old D. Four years old
Can someone please help I will appreciate it