Append new field names to csv file

Good day to all…I have current csv file with A,B,C field names with values as example below:

A, B, C
1, 2, 3
2, 1, 5
3, 3, 7

I want to append below 2 new field names, a dictionary:
mydict = {“name”: [“John”],
“score”: [5]}

So the end results will be:

A, B, C
1, 2, 3
2, 1, 5
3, 3, 7

name, score
John, 5

Someone please help me please…thanks

Well, you learned about csv file appending, from this thread, right?

So what do you have here?

Getting the keys and data from a dictionary is not so hard.

Post back your best effort and let us know where you’re having issues, rather than expecting others to do all the work for you.