Please, keep the discussion in one thread, no need to start new thread every time.
In this case the first argument -
Seriously, you need to go through fundamentals
Also, note that the way you call the function - with
In this case the first argument -
file
must have write
method. You pas str
which does not have such method.Seriously, you need to go through fundamentals
Also, note that the way you call the function - with
separator as keyword argument, you virtually make
*args` useless
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