I am trying to write my dictionary to a csv and i am getting errors, was wondering if someone could tell me what i am doing wrong
this is my function
n = open(file.csv,"w")
for item in my_dict.items():
f.write(item)
f.close()
my my_dict is for example {john }
when i use the function i get the error: expected a character buffer object but if i replace the write with print it works.
thanks in advance