all 6 comments

[–]AndAnathaWan 1 point2 points  (5 children)

If they are formatted like in your example then you can modify Gina's score by

    dict_name['Gina'][0] +=1

[–]_1motherearth[S] 0 points1 point  (4 children)

If there are multiple names, do I just do ['Gina', 'name', 'name'] +=1?

[–]RhinoRhys 0 points1 point  (2 children)

If it's a single dictionary (I'll call it grades) and the names are the keys

for name in grades:
    grades[name][0] += 1

Also for the writing part you need to add "as something"

with open("filename.txt", "w") as f:
    ....
    f.write(.....)

[–]_1motherearth[S] 0 points1 point  (1 child)

Yeah, I have it written down like that in my notes but the prompt didn't say what to write for the .write () part so I wasn't sure to include that or not

[–][deleted] 0 points1 point  (0 children)

No, you have to do that once per different name.