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

Para preparar esta sopa, tienes que _____________ más agua.
How does the entropy change in the reaction 2C3H6(g) + 902(g) → 6CO2(g) + 6 H₂O(g)? OA. It is impossible to tell. B. The entropy increases. C. The entropy is co
Which symbol indicates the repeat of a section? A B C D
How does o'connor depict this setting as the car moves through it? in what ways is the setting similar to or different from the one in steinbeck's passage?
Hugo Munsterberg is known as
By lessening the effects of friction there would be?
3 (without using trig table) evaluate It tan 60 x tan 30 divided by Tan 60 + tan 30
What the correct answer please help me :)
HELP ASAP Yuri computes the mean and standard deviation for the sample data set 12, 14, 9, and 21. He finds the mean is 14. His steps for finding the standard d
can anyone help me solve this problem?