Techboss10
Techboss10 Techboss10
  • 11-11-2020
  • Computers and Technology
contestada

Can someone help me to write a python code to save list form python to CSV file please?​

Respuesta :

Cytokine
Cytokine Cytokine
  • 11-11-2020

f = open("MyFileName.csv", "w")

lst = ["Hello", "Hi", "Bye"]

f.write(str(lst))

f.close()

I didn't necessarily know what you meant by list form. This program works for me in pycharm. I had to install the CSV plugin though. If you encounter any errors, I'll try my best to help you.

Answer Link

Otras preguntas

John is a doctor who is scheduled to perform surgery on a patient. The hospital offers the ability to create a 3-D model of the part of the patient’s body that’
Why is it important to the United States during this time to influence Latin American nations?
Read this sentence. "The Civil Rights Movement was a social movement that had goals of ending racism and segregation and gaining legal rights and access to bett
what is the area of the parallelogram?
Who made up the highest and lowest level of society in Europe during the 1400s
Help me plz 20 points to who ever gets it right
Bone is flexible in nature. true or false. ​
Round 437,912 to the place value of the underlined digit. O 437,900 437,000 o 438,000 437,000 Yeah
Which sentence has a verb in the infinitive form? Running a marathon takes serious commitment and training. Sugar is added to food to make it sweet. Groups of p
what is photosynthesis? hope yall have a great day.​