Python Workshops for Beginners/Saturday September 27th homework: Difference between revisions
Content added Content deleted
Line 24: | Line 24: | ||
To get started, import the two modules which provide the character list and text of the play: |
To get started, import the two modules which provide the character list and text of the play: |
||
<pre> |
<pre> |
||
>>> import summerChar |
>>> import characters from summerChar |
||
>>> import summerNight |
>>> import lines from summerNight |
||
</pre> |
</pre> |
||
⚫ | |||
To access the list of characters, set the following variable: |
|||
<pre> |
|||
>>> characters = summerChar.lines |
|||
</pre> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
<pre> |
|||
>>> lines = summerNight.lines |
|||
</pre> |
|||