Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Explore thousands of questions and answers from a knowledgeable community of experts on our user-friendly platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

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

Sagot :

tonb

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.