Last but not least student

Report a typo

Students Tom, Natalie, and Lina passed the final programming test. There is an OrderedDict named marks with their scores sorted in the descending order. Max passed this exam later and got the maximum score of 100. Please add Max's result to the ordered dictionary, then move it to the first place, and print the altered OrderedDict.

Sample Input 1:

{"Tom": 98, "Lina": 92, "Natalie": 81}

Sample Output 1:

OrderedDict([('Max', 100), ('Tom', 98), ('Lina', 92), ('Natalie', 81)])
Write a program in Python 3
# the following line reads a dict from the input and converts it into an OrderedDict, do not modify it, please
marks = OrderedDict(json.loads(input()))

# your code here
___

Create a free account to access the full topic