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

Mark writes a behavioral contract with his roommate stating that Mark will tear up one baseball card from his prized collection each week that his television vi
A sales message that says customers who purchase a specific product will save money and time is using ________ benefits as a persuasive tool. Multiple Choice pr
Nitrogen fixing bacteria are important to all ecosystems because:
help me with this please
protective tariffs are considered positive because
Which of the following choices is an example of agricultural biotechnology? A) Farmers use radar to predict storms. B) Farmers cross-breed two species of cows t
PLS HELP ME I REALLY NEED HELP
Type the correct answer in each box. A few people who have particular disease take part in a medical trial that tests the effect of a medicine on the disease. H
Which is not a function of the urinary system? A- filtration B- homeostasis maintenance C-waste storage and removal D-hormone production
Use the wave equation to find the speed of a wave given by y(x, t) = (2. 00 mm)[(20 m−1)x − (4. 0 s−1)t] 0. 5