0

I'm not sure how to create csv file, I then also want to learn how to save data on it. I have variables I want to enter in python, and I want to transfer them to excel. I would be very grateful if someone could help me with this problem!

import csv


def nasif():
    myfile= open("MARIA.csv","wb")
    wr=csv.writer(myfile,quoting=csv.QUOTE_ALL)
    mylist=["Name","address","telephone"]
    wr.writerow(mylist)



def maria():
    c = csv.writer(open("MARIA.csv","rb"))

    c.writerow(["Name","address","telephone"])
wolendranh
  • 4,202
  • 1
  • 28
  • 37

0 Answers0