print four last values of each row of a list in python
<p>I need to print the four last values of each row of the list CoordSt.
My code gives the following error:
TypeError: 'str' object is not callable</p>

<pre><code>for i,j,numSt,x,y,z in coordSt:
    f = open('file_name','w')
    f.write('%s,%s,%s,%s \n'(numSt,x,y,z))
    f.close()
</code></pre>
