Shakespeare: Difference between revisions

imported>Zanwenhuahao
imported>Zanwenhuahao
Line 180:
==Extended Exercises==
<b>Exercise 1:</b>
* In modern English, we owe many words to William Shakespeare, who alone invented over 2000 words in the English literature.
* The file "popularWords.txt" lists some popular words that we still use today that were invented by Shakespeare (bet you didn't know that!). Each word originates from at least one of his plays. Can you find the play(s) where each word originated?
* You can save the <b>popular word</b> and <b> the play it comes from </b> as a <b>key:value</b> pair in a dictionary. (remember that value does not have to be a number, it could be arbitrary data structure, i.e. it could be a string or a list of strings)
 
<b>Exercise 2:</b>
* Give yourself a word that you see in a play. Try to output the entire dialogue spoken by the person that first contained the word.
* i.e. if your word is "fantastical" and you are looking at the play "Twelfth Night", you should output:
Line 203 ⟶ 208:
* Note that each person's speech is opened with their name in angular brackets and ends with </...>, as similar to HTML tags.
 
<b>Exercise 23:</b>
* Animals are often used as condescending terms to address someone in Shakespeare's plays.
* Using the list of animals given in the file "listAnimal.txt" can you find (in a play or in many plays) which play and who spoke of something as what animal?
 
<b>Exercise 3:Finally...</b>
* Feel free to devise your own exercises that you would enjoy and find out things about Shakespeare's plays!
* In modern English, we owe many words to William Shakespeare, who alone invented over 2000 words in the English literature.
* The file "popularWords.txt" lists some popular words that we still use today that were invented by Shakespeare (bet you didn't know that!). Each word originates from at least one of his plays. Can you find the play(s) where each word originated?
* You can save the <b>popular word</b> and <b> the play it comes from </b> as a <b>key:value</b> pair in a dictionary. (remember that value does not have to be a number, it could be arbitrary data structure, i.e. it could be a string or a list of strings)
Anonymous user