3 ms·
Do tuple unpacking like this result, _* = iterable()
by adammarples 2y ago
Do tuple unpacking like this
result, _* = iterable()
- plyp 2y agoThat’s not the same though. Your unpacking allows for any non-empty iterable while OPs only allows for an iterable with exactly one item or else it throws an exception.