Python Workshops for Beginners/Saturday September 27th homework: Difference between revisions
Content added Content deleted
imported>Ehashman No edit summary |
|||
Line 30: | Line 30: | ||
To access the list of characters, set the following variable: |
To access the list of characters, set the following variable: |
||
<pre> |
<pre> |
||
>>> characters = summerChar. |
>>> characters = summerChar.lines |
||
</pre> |
</pre> |
||
Line 37: | Line 37: | ||
To access the text of the play as a list (each line is an entry in the list): |
To access the text of the play as a list (each line is an entry in the list): |
||
<pre> |
<pre> |
||
>>> lines = summerNight. |
>>> lines = summerNight.lines |
||
</pre> |
</pre> |
||