layout | title | header | group | exclude |
---|---|---|---|---|
page |
Silly little idioms that should never be used |
Silly little idioms that should never be used |
navigation |
true |
ls.sort(key=lambda (value, frequency): -frequency) # Python2
ls.sort(key=lambda x: next(-frequency for value, frequency in [x])) # Python3
This is better than the first level unwrapping
ls.sort(key=lambda x: (lambda value, frequency: frequency)(*x))
{print('My condition is true') for _ in [''] if 1 > 0}