Hello, I have a dictionary similar to this:<br>dyc = {<br>&#39;a50&#39; : [&#39;textfield&#39;, 50, 40],<br>&#39;k77&#39; : [&#39;othertext&#39;, 60, 10]<br>}<br><br>I was trying to write a csv with the csv module, by doing this:<br>
import csv<br>myfile = open(&#39;c:/myscripts/csv-test.csv&#39;, &#39;wb&#39;)<br>mywriter = csv.writer(myfile, dialect=&#39;excel&#39;)<br><br>for item in dyc:<br><div style="margin-left: 40px;">mywriter.write(item)<br><br>
</div>myfile.close()<br><br>this gives me this result:<br>a50,&quot;[&#39;textfield&#39;, 50, 40]&quot;<br>k77,&quot;[&#39;othertext&#39;, 60, 10]&quot;<br><br>I would like this, instead:<br>a50,&quot;textfield&quot;, 50, 40<br>

k77,&quot;othertext&quot;, 60, 10<br><br>I also could manage to transform that dictionary in a list like this:<br>[ [a50,&quot;textfield&quot;, 50, 40], [k77,&quot;othertext&quot;, 60, 10]<br><br>Thanks in advance for your advice<br>
<br><br>