person_list = [
    {
        'name' : 'Thuy',
        'age'  : 21,
    },

    {
        'name':'Ha',
        'age':21,
    }
]
print(person_list)

# #update
# person_list[0] = {
#     'name': 'Trang',
#     'age': 24,
# }
# print(person_list)

# #delete
# person_list.pop(0)
# print(person_list)

for p in person_list:
    print(p['age'])
# p = person_list[0]
# print(p['age'])
#print(person_list[0]['age']) #cách viết tắt



#print(person_list[1])

#person_list[p1,p2]
# person_list.append(p1)  # đẩy dic vào list
# person_list.append(p2)  
# print(person_list)