Apr-22-2020, 07:45 AM
rows is list of tuples. By
The simplest solutions is to specify
print(*i)
you just unpack each tuple into print and the default separator is space.The simplest solutions is to specify
sep
argument to print functionprint(*i, sep=',')There are other options like using str.join() or string formatting. These would be helpful if you want to construct a string and assign it to a name.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs