I need to sort the following dictionary by age but I don't figure how:
1 {'name':'ste', 'surname':'pnt', 'age':21}
2 {'name':'test', 'surname':'black','age':24}
3 {'name':'check', 'surname':'try', 'age':41}
This is the output of a for
cycle:
for k, v in d.items():
print(k, v)