When to use a dictionary vs tuple in Python – softwareengineering.stackexchange.com

The specific example in mind is a list of filenames and their sizes. I can't decide whether each item in the list should be of the form {"filename": "blabla", "size": 123}, or just ("blabla", 123). A ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "When to use a dictionary vs tuple in Python – softwareengineering.stackexchange.com"