Answer:
Explanation:
# keys() will be assignmentects1, assignmentect2 etc
# values() will be the marks in each assignmentect like 56, 79 etc
AndrewMarks = { 'assignment1': 56,
'assignment2': 79,
'assignment3': 90,
'assignment4': 22,
'assignment5': 50 }
ColinMarks = { 'assignment1': 88,
'assignment2': 62,
'assignment3': 68,
'assignment4': 75,
'assignment5': 78 }
AlanMarks = { 'assignment1': 95,
'assignment2': 88,
'assignment3': 92,
'assignment4': 85,
'assignment5': 85 }
MaryMarks = { 'assignment1': 76,
'assignment2': 88,
'assignment3': 85,
'assignment4': 82,
'assignment5': 90 }
TriciaMarks = { 'assignment1': 99,
'assignment2': 92,
'assignment3': 95,
'assignment4': 89,
'assignment5': 99 }
# Calculate total of each student and store them in the new dictionary
AndrewTot = AndrewMarks['assignment1'] + AndrewMarks['assignment2'] + AndrewMarks['assignment3'] + AndrewMarks['assignment4'] + AndrewMarks['assignment5']
ColinTot = ColinMarks['assignment1'] + ColinMarks['assignment2'] + ColinMarks['assignment3'] + ColinMarks['assignment4'] + ColinMarks['assignment5']
AlanTot = AlanMarks['assignment1'] + AlanMarks['assignment2'] + AlanMarks['assignment3'] + AlanMarks['assignment4'] + AlanMarks['assignment5']
MaryTot = MaryMarks['assignment1'] + MaryMarks['assignment2'] + MaryMarks['assignment3'] + MaryMarks['assignment4'] + MaryMarks['assignment5']
TriciaTot = TriciaMarks['assignment1'] + TriciaMarks['assignment2'] + TriciaMarks['assignment3'] + TriciaMarks['assignment4'] + TriciaMarks['assignment5']
TotalMarks = { 'Andrew': AndrewTot,
'Colin' : ColinTot,
'Alan' : AlanTot,
'Mary' : MaryTot,
'Tricia': TriciaTot}
StudentHighestTotal = max(TotalMarks)
HighestTotalMarks = TotalMarks[max(TotalMarks)]
Averages = { 'assignment1Average': (AndrewMarks['assignment1'] + ColinMarks['assignment1'] + AlanMarks['assignment1'] + MaryMarks['assignment1'] + TriciaMarks['assignment1'] ) / 5 ,
'assignment2Average': (AndrewMarks['assignment2'] + ColinMarks['assignment2'] + AlanMarks['assignment2'] + MaryMarks['assignment2'] + TriciaMarks['assignment2'] ) / 5 ,
'assignment3Average': (AndrewMarks['assignment3'] + ColinMarks['assignment3'] + AlanMarks['assignment3'] + MaryMarks['assignment3'] + TriciaMarks['assignment3'] ) / 5 ,
'assignment4Average': (AndrewMarks['assignment4'] + ColinMarks['assignment4'] + AlanMarks['assignment4'] + MaryMarks['assignment4'] + TriciaMarks['assignment4'] ) / 5 ,
'assignment5Average': (AndrewMarks['assignment5'] + ColinMarks['assignment5'] + AlanMarks['assignment5'] + MaryMarks['assignment4'] + TriciaMarks['assignment5'] ) / 5
}