Dictionary in Python (Overview) – Data Types in Python

🎓 Welcome back to Digital Academy, the Complete Python Development Tutorial for Beginners, which will help you Learn Python from A to Z!

🖥️ Dictionary in Python – Data Types in Python

Dictionary in Python is an unordered and indexed collection of values, used to store data. Unlike any other Data Types in Python that holds only single value as an element, dictionary holds key:value pair. Key-value is provided in the dictionary to make it more optimized, for retrieving data. It is generally used when you have a huge amount of data, since you must know the key, to retrieve the value – but not the other way around!

In Python, a Dictionary can be created by placing a sequence of elements within curly braces. Values in a dictionary can be of any data type and can even be duplicated, whereas keys cannot be repeated. And each key-value pair is separated by a colon, whereas each entry is separated by a comma.

my_dictionary = {1: 'value', 'key': 2}

Dictionary can also be created by the built-in function dict().

my_dictionary = dict()

Note: Dictionary keys are case sensitive. Same name but different cases of Key will be treated distinctly.

Let’s play this video, stick around and watch until the end of this video! 👍🏻

– Digital Academy™ 🎓

***

☞ WATCH NEXT:
○ Data Types in Python – https://youtu.be/cweUByxBWiU
○ Operators in Python – https://youtu.be/-wDaVLkKOiU
○ IF Statements in Python – https://youtu.be/CC5seZ6OBJ4
○ FOR Loops in Python – https://youtu.be/JgH-D5DSTho

☞ WATCH MORE:
○ HOW TO Learn Python? Python Tutorial for Beginners [FULL Course] https://youtu.be/9hvnSZPMtuw

📖 Blog: http://digital.academy.free.fr/blog/

📖 Complete Python Development Course for Beginners [PLAYLIST]: http://digital.academy.free.fr/playlist/python-development-for-beginners

#Python #Tutorial #Beginners #Shorts

***

♡ Thanks for watching and supporting ♡
Please Subscribe. Hit the notification bell.
Like, Comment and Share.

***

♡ FOLLOW US ♡
http://digital.academy.free.fr/
https://twitter.com/DigitalAcademyy
https://www.facebook.com/digitalacademyfr
https://www.instagram.com/digital_academy_fr/
https://www.youtube.com/c/DigitalAcademyOnline

♡ SUPPORT US ♡
http://digital.academy.free.fr/join
http://digital.academy.free.fr/donate
http://digital.academy.free.fr/subscribe
https://www.patreon.com/digital_academy
https://www.buymeacoffee.com/digital_academy

***

Copy link
Powered by Social Snap