+ 1
is dictionarys are mainly used in 2 ways of storing data?
yes it stores key is one value and value is another value
1 Antwort
+ 1
ages = {"Dave": 24, "Mary": 42, "John": 58}
print(ages["Dave"])
print(ages["Mary"])
in this example name ex(Dave) is key and age(24) is value