Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
reading csv and writing csv
#1
I am reading values from csv file into a list and want to write the figures from list into a comma separated row
Reply
#2
my_list = ['1', 'John']
print(','.join(my_list))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Thanx it worked
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fastest Way of Writing/Reading Data JamesA 1 2,187 Jul-27-2021, 03:52 PM
Last Post: Larz60+
  Writing list as a file, then reading that file as a list Zoastria_Balnala 3 2,591 Oct-17-2019, 07:54 PM
Last Post: Zoastria_Balnala
  Reading and writing files JakeHoward4 1 1,810 Aug-07-2019, 06:22 PM
Last Post: Yoriz
  Problem with reading and writing to file. darktitan 2 2,285 Jul-20-2019, 06:06 PM
Last Post: darktitan
  using subpocess for both reading and writing simultaneously dauriac 11 9,653 May-30-2018, 10:09 PM
Last Post: killerrex
  Reading and writing to text file has format change cheerful 3 3,708 Dec-21-2017, 07:53 AM
Last Post: Larz60+
  Reading and writing Windows filepath without treating backslash as escape character Dangthrimble 3 3,532 Dec-18-2017, 06:18 PM
Last Post: DeaD_EyE
  reading and writing to a text file help jobemorgan 4 3,774 Sep-12-2017, 12:09 PM
Last Post: Sagar
  Need help with writing to and reading from files? birdieman 14 10,577 Dec-20-2016, 10:05 PM
Last Post: birdieman

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020