First, a dictionary should have distinct keys. After you fix that, I suggest you check out dictionaries' functionalities below:
Input:
# First_Name: [age, job, eyes]
peoples_details = {
"Tom":[25, "Lawyer", "Brown"],
"Adam":[28, "Python Specialist", "Blue"],
"John":[45, "Unemployed", "Green"]
}
for value in peoples_details.values():
print(value)
for you_can_name_this_var_anything_actually in peoples_details.keys():
print(you_can_name_this_var_anything_actually)
for key, value in peoples_details.items():
print(key, value)
Output:
====================== RESTART: C:/Users/tom/Desktop/py.py =====================
[25, 'Lawyer', 'Brown']
[28, 'Python Specialist', 'Blue']
[45, 'Unemployed', 'Green']
Tom
Adam
John
Tom [25, 'Lawyer', 'Brown']
Adam [28, 'Python Specialist', 'Blue']
John [45, 'Unemployed', 'Green']