3 ms·
Right, but the second you need to modify either the key or the value, you are better off with the dict comprehension. It's like map() vs [...].
by herge 13y ago
Right, but the second you need to modify either the key or the value, you are better off with the dict comprehension. It's like map() vs [...].