import simplejson as json with open(r'C:\Users\Desktop\test.txt', 'r' ) as f1, open(r'C:\Users\Desktop\newtest.txt', 'w') as f2: alist = [] new_dict = {} for i in f1.readlines(): alist.append(json.loads(i)) for i in range(len(alist)): if not new_dict…
favorite_language ={ "jen":"python", "sarah":"c", "edward":"ruby", "phil":"python", } for name in sorted(favorite_language.keys()):# sort by zimushunxu print(name.title()+&quo…