Answer the question
In order to leave comments, you need to log in
Questions about writing to csv file?
I connected the csv library, I'm trying to write data from the dictionary to a csv file.
Here is the function:
def write_csv(data):
with open('weblancer.csv', 'a') as f:
writer = csv.writer(f)
writer.writerow( (data['title'],
data['price'],
data['answ'],
data['link']) )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question