Question
Write a Python program that reads all the words inside of dictionary.txt and then finds all the words that are in story.txt that are not
Write a Python program that reads all the words inside of dictionary.txt and then finds all the words that are in story.txt that are not in dictionary.txt
dictionary.txt: binodal binomial binomially binomials binomial's bins bin's binuclear biochemical biochemically biochemicals biochemist biochemistries biochemistry biochemistry's biochemists biochemist's biodegradabilities biodegradability biodegradable biodiversities biodiversity bioengineering bioengineering's bioethics biofeedback biofeedbacks biofeedback's biog biograph biographer biographers biographer's biographic biographical biographically biographies biography biography's biogs Bioko Bioko's biol biologic biological biologically biologicals biologics biologies biologist biologists biologist's Blackmer's blackness blacknesses blackness's blackout blackouts blackout's Blackpool Blackpool's blacks Black's blacksmith blacksmithing blacksmiths blacksmith's blacksnake blacksnakes blacksnake's blackspot Blackstone Blackstone's blackthorn blackthorns blackthorn's blacktop blacktopped blacktopping blacktops blacktop's Blackwell Blackwells Blackwell's bladder bladdernut bladdernut's bladders bladder's bladderwort bladderwort's blade bladed blades blade's
story.txt:
The Tragedy of Hamlet, Prince of Denmark
ACT I SCENE I. Elsinore. A platform before the castle.
FRANCISCO at his post. Enter to him BERNARDO BERNARDO Who's there?
FRANCISCO Nay, answer me: stand, and unfold yourself.
BERNARDO Long live the king!
FRANCISCO Bernardo?
BERNARDO He.
FRANCISCO You come most carefully upon your hour.
BERNARDO 'Tis now struck twelve; get thee to bed, Francisco.
FRANCISCO For this relief much thanks: 'tis bitter cold, And I am sick at heart.
BERNARDO Have you had quiet guard?
FRANCISCO Not a mouse stirring.
BERNARDO Well, good night. If you do meet Horatio and Marcellus, The rivals of my watch, bid them make haste.
FRANCISCO I think I hear them. Stand, ho! Who's there?
Enter HORATIO and MARCELLUS
HORATIO Friends to this ground.
MARCELLUS And liegemen to the Dane.
FRANCISCO Give you good night.
MARCELLUS O, farewell, honest soldier: Who hath relieved you?
FRANCISCO Bernardo has my place. Give you good night.
Exit
MARCELLUS Holla! Bernardo!
BERNARDO Say, What, is Horatio there?
HORATIO A piece of him.
BERNARDO Welcome, Horatio: welcome, good Marcellus.
MARCELLUS What, has this thing appear'd again to-night?
BERNARDO I have seen nothing.
MARCELLUS Horatio says 'tis but our fantasy, And will not let belief take hold of him Touching this dreaded sight, twice seen of us: Therefore I have entreated him along With us to watch the minutes of this night; That if again this apparition come, He may approve our eyes and speak to it.
HORATIO Tush, tush, 'twill not appear.
BERNARDO Sit down awhile; And let us once again assail your ears, That are so fortified against our story What we have two nights seen.
HORATIO Well, sit we down, And let us hear Bernardo speak of this.
BERNARDO Last night of all, When yond same star that's westward from the pole Had made his course to illume that part of heaven Where now it burns, Marcellus and myself, The bell then beating one,--
Enter Ghost
MARCELLUS Peace, break thee off; look, where it comes again!
HORATIO So have I heard and do in part believe it. But, look, the morn, in russet mantle clad, Walks o'er the dew of yon high eastward hill: Break we our watch up; and by my advice, Let us impart what we have seen to-night Unto young Hamlet; for, upon my life, This spirit, dumb to us, will speak to him. Do you consent we shall acquaint him with it, As needful in our loves, fitting our duty?
MARCELLUS Let's do't, I pray; and I this morning know Where we shall find him most conveniently.
Exeunt
SCENE II. A room of state in the castle.
Enter KING CLAUDIUS, QUEEN GERTRUDE, HAMLET, POLONIUS, LAERTES, VOLTIMAND, CORNELIUS, Lords, and Attendants KING CLAUDIUS Though yet of Hamlet our dear brother's death The memory be green, and that it us befitted To bear our hearts in grief and our whole kingdom To be contracted in one brow of woe, Yet so far hath discretion fought with nature That we with wisest sorrow think on him, Together with remembrance of ourselves. Therefore our sometime sister, now our queen, The imperial jointress to this warlike state, Have we, as 'twere with a defeated joy,-- With an auspicious and a dropping eye, With mirth in funeral and with dirge in marriage, In equal scale weighing delight and dole,-- Taken to wife: nor have we herein barr'd Your better wisdoms, which have freely gone With this affair along. For all, our thanks. Now follows, that you know, young Fortinbras, Holding a weak supposal of our worth, Or thinking by our late dear brother's death Our state to be disjoint and out of frame, Colleagued with the dream of his advantage, He hath not fail'd to pester us with message, Importing the surrender of those lands Lost by his father, with all bonds of law, To our most valiant brother. So much for him. Now for ourself and for this time of meeting: Thus much the business is: we have here writ To Norway, uncle of young Fortinbras,-- Who, impotent and bed-rid, scarcely hears Of this his nephew's purpose,--to suppress His further gait herein; in that the levies, The lists and full proportions, are all made Out of his subject: and we here dispatch You, good Cornelius, and you, Voltimand, For bearers of this greeting to old Norway; Giving to you no further personal power To business with the king, more than the scope Of these delated articles allow. Farewell, and let your haste commend your duty.
CORNELIUS VOLTIMAND In that and all things will we show our duty.
KING CLAUDIUS We doubt it nothing: heartily farewell.
Exeunt VOLTIMAND and CORNELIUS
And now, Laertes, what's the news with you? You told us of some suit; what is't, Laertes? You cannot speak of reason to the Dane, And loose your voice: what wouldst thou beg, Laertes, That shall not be my offer, not thy asking? The head is not more native to the heart, The hand more instrumental to the mouth, Than is the throne of Denmark to thy father. What wouldst thou have, Laertes?
LAERTES My dread lord, Your leave and favour to return to France; From whence though willingly I came to Denmark, To show my duty in your coronation, Yet now, I must confess, that duty done, My thoughts and wishes bend again toward France And bow them to your gracious leave and pardon.
KING CLAUDIUS Have you your father's leave? What says Polonius?
LORD POLONIUS He hath, my lord, wrung from me my slow leave By laboursome petition, and at last Upon his will I seal'd my hard consent: I do beseech you, give him leave to go.
KING CLAUDIUS Take thy fair hour, Laertes; time be thine, And thy best graces spend it at thy will! But now, my cousin Hamlet, and my son,--
HAMLET [Aside] A little more than kin, and less than kind.
KING CLAUDIUS How is it that the clouds still hang on you?
HAMLET Not so, my lord; I am too much i' the sun.
QUEEN GERTRUDE Good Hamlet, cast thy nighted colour off, And let thine eye look like a friend on Denmark. Do not for ever with thy vailed lids Seek for thy noble father in the dust: Thou know'st 'tis common; all that lives must die, Passing through nature to eternity.
HAMLET Ay, madam, it is common.
QUEEN GERTRUDE If it be, Why seems it so particular with thee?
HAMLET Seems, madam! nay it is; I know not 'seems.' 'Tis not alone my inky cloak, good mother, Nor customary suits of solemn black, Nor windy suspiration of forced breath, No, nor the fruitful river in the eye, Nor the dejected 'havior of the visage, Together with all forms, moods, shapes of grief, That can denote me truly: these indeed seem, For they are actions that a man might play: But I have that within which passeth show; These but the trappings and the suits of woe.
KING CLAUDIUS 'Tis sweet and commendable in your nature, Hamlet, To give these mourning duties to your father: But, you must know, your father lost a father; That father lost, lost his, and the survivor bound In filial obligation for some term To do obsequious sorrow: but to persever In obstinate condolement is a course Of impious stubbornness; 'tis unmanly grief; It shows a will most incorrect to heaven, A heart unfortified, a mind impatient, An understanding simple and unschool'd: For what we know must be and is as common As any the most vulgar thing to sense, Why should we in our peevish opposition Take it to heart? Fie! 'tis a fault to heaven, A fault against the dead, a fault to nature, To reason most absurd: whose common theme Is death of fathers, and who still hath cried, From the first corse till he that died to-day, 'This must be so.' We pray you, throw to earth This unprevailing woe, and think of us As of a father: for let the world take note, You are the most immediate to our throne; And with no less nobility of love Than that which dearest father bears his son, Do I impart toward you. For your intent In going back to school in Wittenberg, It is most retrograde to our desire: And we beseech you, bend you to remain Here, in the cheer and comfort of our eye, Our chiefest courtier, cousin, and our son.
QUEEN GERTRUDE Let not thy mother lose her prayers, Hamlet: I pray thee, stay with us; go not to Wittenberg.
HAMLET I shall in all my best obey you, madam.
KING CLAUDIUS Why, 'tis a loving and a fair reply: Be as ourself in Denmark. Madam, come; This gentle and unforced accord of Hamlet Sits smiling to my heart: in grace whereof, No jocund health that Denmark drinks to-day, But the great cannon to the clouds shall tell, And the king's rouse the heavens all bruit again, Re-speaking earthly thunder. Come away.
Exeunt all but HAMLET
HAMLET O, that this too too solid flesh would melt Thaw and resolve itself into a dew! Or that the Everlasting had not fix'd His canon 'gainst self-slaughter! O God! God! How weary, stale, flat and unprofitable,
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started