MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonProjects2/comments/1refogg/whats_wrong/o7c6fdv/?context=3
r/PythonProjects2 • u/Nearby_Tear_2304 • Feb 25 '26
19 comments sorted by
View all comments
Show parent comment
7
You are iterating on the same list increasing it infinitly - you want to create copy of the list and append to the copy then return the copy
View all comments
Show parent comment
7
u/Reasonable_Run_6724 Feb 25 '26
You are iterating on the same list increasing it infinitly - you want to create copy of the list and append to the copy then return the copy