python-hard-way/Codecadmey Projects/gradebook-ch4.py

10 lines
397 B
Python
Raw Permalink Normal View History

2019-01-25 01:20:10 +00:00
last_semester_gradebook = [("politics", 80), ("latin", 96), ("dance", 97), ("architecture", 65)]
subjects = ['physics', 'calculus', 'poetry', 'history']
grades = ['98', '97', '85', '88']
subjects.append('computer science')
grades.append('100')
gradebook = list(zip(subjects, grades))
gradebook.append(['visual arts', 93])
full_gradebook = gradebook + last_semester_gradebook
print(full_gradebook)