I'm trying to convert a spell checker built in Python 2 to Python 3. I'm having trouble understanding this line.
outlist = sorted(as_list, key=lambda (term, (freq, dist)): (dist, -freq))
I've found a couple of tuple
unpacking questions and answers, but I'm having trouble understanding what is actually happening and how to convert this particular line.