Try escaping the quotes.<br><br>&gt;&gt;&gt; f = open(&quot;data.ini&quot;,&quot;w&quot;)<br>&gt;&gt;&gt; f.write(&quot;my \&quot;car\&quot; has been a great one for me&quot;)<br>&gt;&gt;&gt; f.close()<br><br>~ &gt;cat data.ini
<br>my &quot;car&quot; has been a great one for me<br><br><div><span class="gmail_quote">On 7/13/07, <b class="gmail_sendername">elis aeris</b> &lt;<a href="mailto:hunter92383@gmail.com">hunter92383@gmail.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">also, why does the interpreter restart when I run this?<br><br><br><br>f = open(&quot;
data.ini&quot;,&quot;w&quot;)<br><br>f.write(&quot;yeahppe&quot;)<br><br>f.close()
<br>_______________________________________________<br>Tutor maillist &nbsp;- &nbsp;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Tutor@python.org">Tutor@python.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">
http://mail.python.org/mailman/listinfo/tutor</a><br><br></blockquote></div><br>