Oct-09-2021, 12:45 AM
(Oct-08-2021, 10:54 PM)sjcsvatt Wrote: I didn't understand your code, ... Where is the query out being passed to the for loop?? could you please elaborate?test.txt:
Output:hello, world
1065, Street Level 4
car, 12456
Quote:I don't want brackets and single quotes over the text valueShow a sample of how input
qry_result
look and what data type it is.By output it look something liker this.
>>> s = ('1065', "'Street Level 4'") >>> # Clean up >>> s = ', '.join(s) >>> s "1065, 'Street Level 4'" >>> s.replace("'", '') '1065, Street Level 4'