Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Commas issue in variable
#7
Not using a csv file writer will reduce the number of commas. You don't need to use a csv writer to write two values separated by a comma.
with open(filePath, 'a') as csvfile:
    print(today, " EDT,", tagPath.value, file=csvfile, sep="")
Reply


Messages In This Thread
Commas issue in variable - by ddahlman - Apr-04-2024, 01:38 PM
RE: Commas issue in variable - by Gribouillis - Apr-04-2024, 02:08 PM
RE: Commas issue in variable - by ddahlman - Apr-04-2024, 02:28 PM
RE: Commas issue in variable - by Gribouillis - Apr-04-2024, 02:40 PM
RE: Commas issue in variable - by deanhystad - Apr-04-2024, 03:32 PM
RE: Commas issue in variable - by Gribouillis - Apr-04-2024, 04:08 PM
RE: Commas issue in variable - by deanhystad - Apr-05-2024, 03:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  help with commas in print functions kronhamilton 11 3,692 Feb-10-2022, 02:02 PM
Last Post: mishraakash
  Variable scope issue melvin13 2 1,658 Nov-29-2021, 08:26 PM
Last Post: melvin13
  Variable Issue slackerman73 2 2,007 Nov-09-2019, 04:34 PM
Last Post: slackerman73
  Issue with affecting numbers to a variable Adem 3 2,389 Sep-24-2019, 07:48 AM
Last Post: Adem
  Help|CSV Writing on List with Inner Commas soothsayerpg 2 2,446 Jul-20-2019, 06:59 AM
Last Post: scidam
  [split] Automate the boring stuff, inserting commas in list srikanth 1 2,169 Jul-02-2019, 02:29 PM
Last Post: metulburr
  Automate the boring stuff, inserting commas in list DJ_Qu 3 4,843 Apr-21-2019, 03:52 PM
Last Post: perfringo
  accessing array without commas rjnabil1994 1 2,595 Feb-10-2019, 06:29 PM
Last Post: Larz60+
  Mixed string,Integer input variable issue maderdash 2 2,832 Nov-06-2018, 09:46 AM
Last Post: snippsat
  Printing array without commas pawlaczkaj 1 9,590 Apr-08-2018, 07:05 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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