students = ["Terri", "Gerald", "Sam"] classes = {'Math': '98', 'Science': '80', 'Literature': '75'}
now I want to be able to know the grade that Terri got in his math class and I want the answer to be 98, dict['Terri']['Math'] = 98.
98
dict['Terri']['Math'] = 98
How would I do that? Is there a way around this where I can convert this to other types of collections? TY
I would like the nested dictionary to read like:
{Terri: Math:98, Science: 80....} # and so on....
1.4m articles
1.4m replys
5 comments
57.0k users