From 41748c286a188f5d9680ee78a84b3535a8508fe8 Mon Sep 17 00:00:00 2001 From: Ponrar Date: Sun, 9 Jul 2023 03:15:16 -0700 Subject: [PATCH] Format output with commas --- process | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process b/process index c3008dd..c07b85b 100755 --- a/process +++ b/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()