12 ms·
It's confusing that output is on the >>> lines while input is not -- backwards from the REPL. More things to consider: dict.iteritems, collections.defaultdict,
by Scaevolus 14y ago
It's confusing that output is on the >>> lines while input is not -- backwards from the REPL.
More things to consider: dict.iteritems, collections.defaultdict, enumerate(seq, 1)