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 best identifies a run-on sentence?A. A lioncan run faster than a greyhound or a fox.B. Humpback whales sing songs every year.C. some tortoises are huge, y
How is wave amplitude measured in a transverse wave?
Why did early civilizations develop forms of writing? a) to express themselves artistically b) to write books for people to read c) to make and keep records d
convocation select the suffix and its meaning.
what are the dependent variables of the pond experiment
What are three mineral resources found in Brazil? gold silver bauxite iron ore copper
Combine the like terms to make a simpler expression: 4r+14-r-6
Which two properties can be used to find (3.4 x 4) x (25 x 1)? explain.?
Cells have specific organelles with different structures and functions. Can you compare the mitochondria and chloroplast in terms of function?
Jewish Christians who taught legalism in the churches were called: Sanhedrin Pharisees Sadducees Judaizers Gentiles