Python Workshops for Beginners/Saturday September 27th homework: Difference between revisions

imported>Ehashman
 
(4 intermediate revisions by 3 users not shown)
Line 1:
Hopefully you haven't forgotten too much from the last few sessions. Here are some homework problems you should try out before the next session.
 
= OctoberSeptember 2527 Homework Exercises =
 
The exercises are based on the Shakespeare and Wordplay exercises from last time. Regardless of which afternoon session you attended, you should be able to do both, unless otherwise specified.
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 characters
>>> import lines from summerNight import lines
</pre>
 
Character names are stored inwith theall formcapital <NAME>letters, which is how their parts are represented in the script.
 
Each line of the play is an entry in the list. At the end of some lines you may see things like "/r" or "/n". You can ignore these symbols, as they're just special characters used to denote things such as new lines (like when you press the enter key) or tabs.
Each line of the play is an entry in the list.
 
 
Anonymous user