Python Dictionaries | How to use Dictionaries in python vs code Step by Step Tutorial
Dictionaries in python
This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Dictionaries in Python
Python provides another composite data type called a dictionary, which is similar to a list in that it is a collection of objects.
Here’s what you’ll learn in this tutorial: You’ll cover the basic characteristics of Python dictionaries and learn how to access and manage dictionary data. Once you have finished this tutorial, you should have a good sense of when a dictionary is the appropriate data type to use, and how to do so.
Dictionaries and lists share the following characteristics:
Both are mutable.
Both are dynamic. They can grow and shrink as needed.
Both can be nested. A list can contain another list. A dictionary can contain another dictionary. A dictionary can also contain a list, and vice versa.
Dictionaries differ from lists primarily in how elements are accessed:
List elements are accessed by their position in the list, via indexing.
Dictionary elements are accessed via keys.
Follow my Facebook Page : https://www.facebook.com/105940115222549
Follow me on Instagram : https://www.instagram.com/p/CViUlw2sOMi
Follow me on tumblr : http://programming-guru.tumblr.com
Follow me on reddit : https://www.reddit.com/u/Programming_guru1?utm_medium=android_app&utm_source=share
Видео Python Dictionaries | How to use Dictionaries in python vs code Step by Step Tutorial автора Мастерские занятия по Python
Видео Python Dictionaries | How to use Dictionaries in python vs code Step by Step Tutorial автора Мастерские занятия по Python
Информация
2 декабря 2023 г. 12:31:39
00:03:22
Похожие видео