school = [['dia', 87], ['ria', 100], ['gud', 59], ['ria', 85], ['gud', 76], ['don', 99]]
This array contains the students and their marks (yes, there are some duplicate students who are having diff values).
I want to convert it into this dictionary to find the avg score:
school_dict = { dia:[87], ria:[100,85], gud:[59,76], don:[99] }
Let me know if anyone can solve this for me.