3 ms·
If you iterate over .keys(), you are allowed to use del key[value].
by andrevoget 14y ago
If you iterate over .keys(), you are allowed to use del key[value].
- andreasvc 14y agoOnly in Python 2, which returns something to the effect of list(dict); so my point remains, they keys method doesn't add anything which you don't get (more explicitly) by coercing to a list when needed.