Format output with commas

This commit is contained in:
Ponrar 2023-07-09 03:15:16 -07:00
parent f5aca0d4cd
commit 41748c286a

View File

@ -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()