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

Lee harvey oswald's face when he was told he was charged with murder.
A red 5kg brick has an initial location of (0,0) on a flat surface and a velocity of 3m/s in the positive x direction. A tan 2 kg brick has an initial location
Can someone answer my earlier question in math its 20 points
13. Marcos wants to improve his capacity to keep himself open to new options. What is the inferior function that he should develop? Defining ? Prospecting ? Th
Which of the following components of a nucleotide determines the type of nucleotide? A. 5-carbon sugar B. phosphate group C. nitrogenous base
what do we mean when we speak of the different aspects of healthy living​
Humans can maintain stable internal temperature by
Are plants the only organisms that photosynthesize.
PLEASE HELP ME PLEASE
Please help and you will get brainliest but answer correctly please