![Wall Wall](https://python-forum.io/images/smilies/eusa_wall.gif)
file
, list
are Python function names - please, don't overshadow those with your variables.Every second post here - me think
![Angry Angry](https://python-forum.io/images/smilies/angry.png)
If you want to create a string with comma-separated list elements, use
join
method','.join(data)PS You didn't close bracket in line 3 - and you are supposed to close line with EOL - you write it outside the outermost loop, thus not separating rows
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.