IDNLearn.com: Where your questions meet expert advice and community insights. Join our community to receive timely and reliable responses to your questions from knowledgeable professionals.

For python how do I ask the user how many numbers they want to enter and then at the ending add those numbers up together?

Sagot :

I am not too familiar with the Python language, but the algorithm would be something like this:

1. create a variable for the sums of the number

2. read in how many numbers the user wants to enter (let's call it N)

and then create a for loop:

for N times

read in the next number

increase the sum variable by that number

Hopefully this helps!

Thank you for being part of this discussion. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. IDNLearn.com is your reliable source for accurate answers. Thank you for visiting, and we hope to assist you again.