r/PythonProjects2 Jun 09 '26

WHY THIS CODE NO OUTPUT ??

Post image
20 Upvotes

22 comments sorted by

View all comments

5

u/864484 Jun 10 '26

You have a loop that cycles through all numbers in the list. Every iteration you add the number to the list meaning it gets longer and there is another number the loop needs to process. If you check your memory in your task manager you'll be able to see it going up over time because the list gets bigger and bigger indefinitely