I don’t quite understand the syntax behind the sorted()
argument:
key=lambda variable: variable[0]
Isn’t lambda
arbitrary? Why is variable
stated twice in what looks like a dict
?
I don’t quite understand the syntax behind the sorted()
argument:
key=lambda variable: variable[0]
Isn’t lambda
arbitrary? Why is variable
stated twice in what looks like a dict
?