LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: Learn Python dictionary values with Jupyter (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-learn-python-dictionary-values-with-jupyter-4175692031/)

LXer 03-14-2021 07:15 PM

LXer: Learn Python dictionary values with Jupyter
 
Published at LXer:

Dictionaries are the Python programming language's way of implementing data structures. A Python dictionary consists of several key-value pairs; each pair maps the key to its associated value.For example, say you're a teacher who wants to match students' names to their grades. You could use a Python dictionary to map the keys (names) to their associated values (grades).If you need to find a specific student's grade on an exam, you can access it from your dictionary. This lookup shortcut should save you time over parsing an entire list to find the student's grade.read more

Read More...


All times are GMT -5. The time now is 02:19 PM.