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

Which statement correctly identifies the scientific question and describes why the question is scientific?Question 1 refers to the supernatural.Question 2 refle
Which is the factored form of the polynomial P(x) shown here?
Boss: Oh no! That’s the phone again! Secretary: blank Boss: Thanks. A. Shall I take it? B. Will you answer it? C. Can you do me a favor? D. May I hang it up?
9 please please :D.
Does a shark have wings??
Why are reading and writing necessary in today’s world?
respect for the environment means A: loving trees and animals B: not drinking out of streams C: making as little impact as possible on wilderness areas D: on
Which statement correctly describes potassium iodide, KI? There is a one-to-one ratio of potassium ions to iodide ions. Potassium gains electrons and iodi
Understanding you missed a question on your fine arts test because you confuse the artist Van Gogh with Monet is an example of what type of thinking skills? A.
which statement best explains the role of government according to thomas Hobbes