Adding Multiple Numbers!

A code to add multiple numbers using Python programming.

Welcome to the code! Here’s a simple code to add multiple numbers for all the beginners to start with python programming.

In this code, the user is asked for the number of numbers to be added and the numbers that have to be added should be given by the user and the rest of the addition will be done through python programming.

Note: Loved the post? You too can publish your article on “Python for fun” which will be loved by millions. Contribute an article!

					length = int(input("How many numbers do you want to add?"))
lst = []

for n in range(length):
    num = int(input("Please enter the numbers you want to add!"))
print("The sum of the numbers is:", sum(lst))
Share on facebook
Share on whatsapp
Share on pinterest
0 0 votes
Notify of
Inline Feedbacks
View all comments