How do the two dictionaries of python compare in size?

a = {"name":" alex", "age": 23}
b = {" name": "john"," age": 28}
obtain the maximum age dictionary dict? according to the size of the age

Jul.08,2021

python3


a = {'name': 'alex', 'age': 23}
b = {'name': 'john', 'age': 28}

print('a>b') if a['age'] > b['age'] else print('a<b')
Menu