python sort list of tuples lexicographically
By Darlene Feil at Mar 30 2021
python max value of list of tuples
By Thomas Gutkowski at May 19 2021