Back to Browse

Python | Dictionary Nesting | Dictionary in Dictionary

296 views
Dec 3, 2024
5:19

#python #dictionary #loops #forloops #keyvalue #kvpairs #programming #pythonloop #data #keys #values #set #variables #itemsmethod #dictionarylooping #pythondictionary #storeinformation #pythondata #pythonkeys #pythonvalues #pythonpairs #pythonprogramming #keysmethod #sortedmethod #loopingviakeys #dictionarykeys #dictionarynesting #dictionaryinsidedictionary * Hello everyone, welcome back, in this video, I am explaining python dictionary inside a dictionary (III. Dictionary in a Dictionary) ! * Nesting is a powerful feature in all programming language (not only in Python). Sometimes we want to store multiple dictionaries in a list or list of items as a value in a dictionary in following ways. I. Dictionaries inside a List (D inside L) – make a list of dictionaries (dict_1, dict_2, dict_3 etc.) in which each list is a dictionary, List_L = [dict_1, dict_2, dict_3] II. List of items inside a Dictionary (L inside D) – put a list (list_1, list_2, list_3) inside a dictionary as Dict_D1 = { [list_1], [list_2], [list_3] } III. Dictionary inside another Dictionary (D inside D) – Dict_D = {{dict_1}, {dict_2}, {dict_2}, {dict_3} } * YouTube channel link: https://www.youtube.com/@NareshKSHETRI * Python playlist in my Channel: https://www.youtube.com/playlist?list=PL7-xjgCdZq84QfIKf3RAixGkGDQlHqWM- * Video recorded on: Zoom, Video edited on: iMovie version 10.3.5 (at iMac) * Link to download (and install) Python for your specific OS: https://www.python.org/ * Link to Google Colab: https://colab.research.google.com/ * LinkedIn (let us connect): https://www.linkedin.com/in/NareshKshetri/ * Website (Google Sites): https://sites.google.com/view/NareshKshetri * Please like, share, & subscribe if the video was helpful !

Download

0 formats

No download links available.

Python | Dictionary Nesting | Dictionary in Dictionary | NatokHD