#step1:创建字典
#step2:sorted()函数排序
#step3:添加新元素
#step4:通过键遍历字典
operators_dict={'<': 'less than','==': 'equal'}
print('Here is the original dict:')
for k,v in sorted(operators_dict.items()):    #for x in sorted(operators_dict):
    print(f'Operator {k} means {v}.')  #print(f'Operator {k} means {operators_dict[k]}.')
operators_dict['>']='greater than'
print()
print('The dict was changed to:')
for k,v in sorted(operators_dict.items()):
    print(f'Operator {k} means {v}.')