How do you add x amount of different inputs? For example, if you were to code

 number = input("How many numbers do you have?")
 for x in range(number):
    value = input("Insert a value:")

The user would decide how many values (number) they have and what the are. I would like to add every value together. How would i do that?

Please, post your code and question in the forum of your language.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.