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

-7 + 4n = 9 Show your work!
4 green picks 0 orange add orange picks 2 orange for every 1 green pick how many picks are there now
The area of a certain state is 840,000 miles. what is this area in scientific notation 8.4 x 10^-4 84 x 10^-3 84 x 10^3 8.4 x 10^5 Plz help asap!!!!
Why is the battle of Lexington and Concord important
The Government of Belgium provides three community council to protect the interests of
Two sailboats had a race. Sailboat A traveled 40 feet every 5 seconds, and sailboat B traveled 56 feet every 8 seconds. Which sailboat won the race, and how fas
in wich location do tou find the most volcanoes
Symplify 5+2(x-5) Please solve the equation with steps. My answer choices are 2x 2x+5 2x-5 7x-35
what is the general term for nucleic acids and carbohydrates???
help please .. what the answer?