matthew267 matthew267
  • 07-12-2021
  • Computers and Technology
contestada

Write a python program to calculate the sum of three numbers and as well require the user to input the numbers.​

Respuesta :

tonb
tonb tonb
  • 07-12-2021

Answer:

numbers = []

for i in range(3):

 numbers.append(eval(input("Enter number: ")))

print('Sum is:', sum(numbers))

Explanation:

You want to use a loop to prevent repeating your code.

Answer Link

Otras preguntas

all of the following are methods that drugs use be adminstered except A ingestion B inhalation C peer pressure D direct contact
In the Most Dangerous Game, explain how Sanger Rains ford's epiphany is caused by the external conflict.
All computers perform disk optimization utilizing the same software. true false
What is 7 minus 4/9
Write an expression for the calculation double the product of 4 and 7
Use decimals to spray is 0.719 in expanded form
There are different kinds of cells in your body that were each created to do a specific job.
How do I do this plz help me
words to match expression 3 (4 x 12)
how did us pilots contribute to the allied war effort in europe during world war ii?a. they carried out countless bombing raids on targets in germany.b. they sa