r/PythonLearning • u/RegularBother614 • 18d 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!
88
Upvotes
View all comments
Show parent comment
2
u/NoMakeSenseOk 18d 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.