r/PythonLearning • u/RegularBother614 • 14d 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
r/PythonLearning • u/RegularBother614 • 14d ago
I made a program that finds the second largest digit in a list.
Using the list method "remove()" and "max" function. Python is COOL!
23
u/NoMakeSenseOk 14d ago
You can keep the list intact and print the second-to-last value of a sorted list.