LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: Python Dictionaries (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-python-dictionaries-4175593790/)

LXer 11-18-2016 06:12 AM

LXer: Python Dictionaries
 
Published at LXer:

Somebody hit lists with gamma rays. Okay, so Dictionaries aren't the Incredible Hulk, but they are supercharged in what they can do. In other languages, dictionaries are referred to as hashes, associative arrays, and associative lists. It's probably best to think of them as associative lists because that's exactly what they are. Dictionaries are lists that associate two values with one another. To think of it in terms of an actual dictionary, they associate a word, or key with a definition, or value. They function sort of like a list with custom indexes.

Read More...


All times are GMT -5. The time now is 12:05 AM.