Python Forum
Only first letter in the cell of the file.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Only first letter in the cell of the file.
#1
            b=b+1
            for a in range(0,b):
                writefile = open("data.csv",'a')
                writefile.write(str(name[a]) + "," + str(surname[a]) + "," + "\n")
            
            writefile.close() 
When I enter name and surname I only see the first letter on my file called data. Any idea why this is the case?

Thanks.
Reply


Messages In This Thread
Only first letter in the cell of the file. - by rturus - Jun-26-2019, 01:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get cell name from XML file paulo79 4 1,504 Mar-11-2022, 10:33 AM
Last Post: paulo79
  Python not reading cell in excel file wendysling 1 2,229 May-21-2019, 10:40 PM
Last Post: Larz60+
  [Help] How to count Letter frequency in a text file? vanicci 6 15,927 Aug-08-2018, 12:23 PM
Last Post: vanicci
  Problem with assigning directory of a file based on cell name mmaz67 3 2,941 Jul-04-2018, 08:40 AM
Last Post: Larz60+
  find cell value with matching regular expression of a row in excel file hruday 4 31,186 Jul-05-2017, 01:02 PM
Last Post: sparkz_alot

Forum Jump:

User Panel Messages

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