Shakespeare: Difference between revisions

Content added Content deleted
imported>Zanwenhuahao
imported>Zanwenhuahao
Line 54: Line 54:
< Shakespeare -- A MIDSUMMER-NIGHT'S DREAM >
< Shakespeare -- A MIDSUMMER-NIGHT'S DREAM >
</pre>
</pre>
* Read a file line by line until the end of file (also known as <cod> eof </code>)
* Read a file line by line until the end of file (also known as <code> eof </code>)
<pre>
<pre>
>>> for eachline in M_S:
>>> for eachline in M_S:
Line 60: Line 60:
...
...
</pre>
</pre>

====File & Strings Exercise====
====File & Strings Exercise====
=====Using the word "love"=====
=====Using the word "love"=====