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

1. What is the shortest distance from a point to a line?A) a perpendicular segmentB) a transversalC) a parallel segmentD) an arc
what year did mid slavery started
Estimate the product of 496 and 351
are 32/36 and 24/28 proportional
What is the distance between point A and point B to the nearest tenth?   Answers:   A. 10.8 units
Name and describe an example of a parasitic relationship involving a fungus.
Cincinnati's major league baseball team is the Reds. What was the greatest historical significance of this team that happened in 1869? PLEASE HELP!!! D:
How do global events effect your daily life?
after 25% of a bill is paid $80 still remains to be paid. how much was the bill?
after 25% of a bill is paid $80 still remains to be paid. how much was the bill?