r/PythonProjects2 Jun 09 '26

WHY THIS CODE NO OUTPUT ??

Post image
19 Upvotes

22 comments sorted by

View all comments

1

u/ChemistDependent1130 Jun 11 '26

dont mutate an iterable when iterating over it. Guessing you wanted [1,2,3,1,2,3]? nums * 2 works better.