Dictionary_Data_Types
#Dictionary is an unordered key value pair, it is a data type and unstructer data types
dict = {
'a': 1,
'b': 2,
'x': True
}
print(dict['a'])
print(dict)
dict = {
'c': [1,2,3,4],
'd': 'hello',
'e': False
}
print(dict['c'][2])
my_list = [
{
'a': [1,2,3],
'b': 'mello',
'x': True
},
{
'c': [4,5,6],
'd': 'hello',
'e': False
}
]
print(my_list[0]['a'][2])INFO