Format output with commas
This commit is contained in:
parent
f5aca0d4cd
commit
41748c286a
3
process
3
process
@ -19,7 +19,8 @@ def main():
|
||||
reader = csv.reader(csvfile, delimiter=delim, quotechar=quotechar, skipinitialspace=True)
|
||||
next(reader) # Skip the first row
|
||||
for row in reader:
|
||||
# Strip any whitespace in the csv file
|
||||
stripped = map(strip, row)
|
||||
[keyword, text, sound] = stripped
|
||||
print(keyword, text, sound)
|
||||
print(f'{keyword},{text},{sound}')
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user