Utwórz słownik
hh = {"john":3, "mary":4, "joe":5}
print(hh)
# {'joe': 5, 'john': 3, 'mary': 4}
Sore Sloth
hh = {"john":3, "mary":4, "joe":5}
print(hh)
# {'joe': 5, 'john': 3, 'mary': 4}
dictionary_name = {key: value}
# Creating a Dictionary
# with Integer Keys
Dictionary = {0: 'Softhunt', 1: '.net', 2: 'By', 3: 'Ranjeet'}
print("\nDictionary with the use of Integer Keys: ")
print(Dictionary)
# Creating a Dictionary
# with Mixed keys
Dictionary = {'Name': 'Ranjeet Kumar Andani', 1: [0, 1, 2, 3, 4, 5]}
print("\nDictionary with the use of Mixed Keys: ")
print(Dictionary)