A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://realpython.com/courses/dictionaries-python/discussion/ below:

What Is a Dictionary in Python? (Video) – Real Python

Great introduction Paul. Concise and informative.

One comment though: in the part where you define your dicitionary as:

your_dictionary = {
    key: value,
    key  value
}

I would suggest to use something like this instead:

your_dictionary = {
    key1: value1,
    key2: value2
}

Since moments before introducing this example you talk about the uniqueness of the keys.

It should be noted that value1 can be the same as value2 but key1 can’t be the same as key2


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4