r/PythonLearning • u/RegularBother614 • 11d ago
What do you guys think?
I made a program that finds the second largest digit in a list.
Using the list method "remove()" and "max" function. Python is COOL!
87
Upvotes
View all comments
Show parent comment
2
u/NoMakeSenseOk 11d ago
I should've mentioned this, since every new list or copy thereof increases memory usage. For less memory usage we use references rather than copies.