I found what I hoped would be the answer here.
In my case I have 2 lists of strings. From this code:
fields = POST[ 'fields' ]
values = POST[ 'row' ]
for ( field, value ) in zip( fields, values ):
f.write( f' field {field}, value {value}\n' )
... this is what I get:
row: [4,1,"AAR",null,null,"Aardvark Ltd",null,"2019-07-20 00:00:00","modem - ring first","M",null,null,"",null,null]
fields: ["id","category","code","title","firstname","secondname","salutation","lastcon","sendconventions","stdsendmethod","vatno","refquote","notes","created","lastmodif"]
field [, value [
field ", value 4
field i, value ,
field d, value 1
field ", value ,
field ,, value "
field ", value A
field c, value A
field a, value R
field t, value "
...
It's picking apart the strings into characters, and even including the square brackts, quotes and commas. How might I prevent this? I want it to list the pairs of strings (1 from each list) as it iterates.