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

a convex mirror can form a. both virtual and real images. b. only real images. c. only virtual images. d. none of the above
Why was the conflict between the clergy and the third estate the most divisive in the course of the revolution?
why was the Holy Land named so by the Christians
plural form of un escritorio
Convert 3.9x10^5mg to dg
Analise as assertivas e assinale a alternativa correta: I – O Brasil é um Estado Democrático de Direito por determinação constitucional; logo, todas as normas i
what is the the pickture
70:100 in whole form
Where are the majority of the hispanics in miami from?
Which text synopsis is most likely a narrative? A. A poet's twelfth sonnet, written on the topic of his lover's hair B. A practical guide to helping your