Anonymous user
Python Workshops for Beginners/Saturday September 27th homework: Difference between revisions
Python Workshops for Beginners/Saturday September 27th homework (view source)
Revision as of 00:49, 20 October 2014
, 9 years ago→Shakespeare Exercises
Line 24:
To get started, import the two modules which provide the character list and text of the play:
<pre>
>>> import characters from summerChar
>>> import lines from summerNight
</pre>
▲Note: character names are stored in the form <NAME>, which is how their parts are represented in the script.
▲To access the text of the play as a list (each line is an entry in the list):
|