├── README.md
├── Unit1
├── checklist.mkd
├── linux_python_installation.mkd
├── linux_terminal_navigation.mkd
├── linux_text_editor.mkd
├── osx_python_installation.mkd
├── osx_terminal_navigation.mkd
├── osx_text_editor.mkd
├── windows_python_installation.mkd
├── windows_terminal_navigation.mkd
└── windows_text_editor.mkd
├── Unit2
├── video1.mkd
└── wordplay
│ ├── scrabble.py
│ └── sowpods.txt
├── Unit3
├── dictionaries.mkd
├── lists.mkd
├── sonnets
│ ├── extract_sonnet_words.py
│ ├── sonnet_words.txt
│ ├── sonnets.py
│ ├── sonnets.txt
│ └── sowpods.txt
├── video1.mkd
└── video2.mkd
├── Unit4
├── jeopardy
│ ├── category_clues.py
│ ├── clues.py
│ ├── game_categories.py
│ └── jeopardy.dump
└── video1.mkd
└── Unit5
├── plotting
├── basic_plot.py
├── constitution.py
├── constitution.txt
├── life_expectancies_usa.txt
├── mystery.txt
├── world_population.py
└── world_population.txt
└── video1.mkd
/README.md:
--------------------------------------------------------------------------------
1 | # Material and exercises for O'Reilly's Intermediate Python video series
2 |
3 | Thank you for supporting this Intermediate Python video series. This repository
4 | contains the companion material for the videos. If you have any questions,
5 | please don't hesitate to reach out to the author (me, Jessica!) at:
6 | jesstess@mit.edu
.
7 |
8 | All links referenced in the video series:
9 |
10 | * [Unit 1, Video 2: Environment setup checklist](./Unit1/checklist.mkd)
11 | * [Unit 2, Video 1: Wordplay files](./Unit2/video1.mkd)
12 | * [Unit 3, Video 1: Reviewing lists and dictionaries](./Unit3/video1.mkd)
13 | * [Unit 3, Video 2: Sonnets](./Unit3/video2.mkd)
14 | * [Unit 4, Video 1: Jeopardy](./Unit4/video1.mkd)
15 | * [Unit 5, Video 1: Plotting](./Unit5/video1.mkd)
16 |
--------------------------------------------------------------------------------
/Unit1/checklist.mkd:
--------------------------------------------------------------------------------
1 | # Unit 1, Video 2: Environment setup checklist
2 |
3 | This video series assumes that you:
4 |
5 | * Have Python 3 installed
6 | * Have a text editor installed
7 | * Are comfortable with basic command line navigation
8 | * Are comfortable writing and running Python scripts
9 | * Have completed O'Reilly's Introduction to Python video series or
10 | equivalent material. This includes comfort with basic data
11 | structure, flow control, modules, and reading and writing files.
12 |
13 | Please take a moment to check your Python 3 installation and review the
14 | background material. If you'd like a refresher on any of these steps, take a
15 | look at the background material below:
16 |
17 | ## Python installation
18 |
19 | * [Windows](./windows_python_installation.mkd)
20 | * [OSX](./osx_python_installation.mkd)
21 | * [Linux](./linux_python_installation.mkd)
22 |
23 | ## Text editor installation
24 |
25 | * [Windows](./windows_text_editor.mkd)
26 | * [OSX](./osx_text_editor.mkd)
27 | * [Linux](./linux_text_editor.mkd)
28 |
29 | ## Command line navigation review
30 |
31 | * [Windows](./windows_terminal_navigation.mkd)
32 | * [OSX](./osx_terminal_navigation.mkd)
33 | * [Linux](./linux_terminal_navigation.mkd)
34 |
35 | ---
36 |
37 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
38 | jesstess@mit.edu
.
39 |
--------------------------------------------------------------------------------
/Unit1/linux_python_installation.mkd:
--------------------------------------------------------------------------------
1 | # Installing Python on Linux
2 |
3 | This page walks through how to install a version of Python on Linux that is compatible with this tutorial.
4 |
5 | Any version of Python 3 will work for this tutorial. If you don't have Python installed, we'll install Python version 3.4.1.
6 |
7 | ## Check your Python installation
8 |
9 |
Applications/Accessories/Terminal
, or it may already be on your menu bar.
11 |
12 | 18 | python 19 |20 | 21 | and pressing Enter. You should see something like 22 |
23 | Python 3.4.1 (v3.4.1:d047928ae3f6, May 13 2013, 12:45:22) 24 | [GCC 4.3.2] on linux2 25 | Type "help", "copyright", "credits" or "license" for more information. 26 | >>> 27 |28 | 29 | You just started Python! The
>>>
indicates that you are at a new type of prompt -- a Python prompt. The Terminal prompt lets you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.34 | exit() 35 |36 | 37 | and pressing Enter. This will take you back to the Linux Terminal prompt.
45 | python3 46 |47 | 48 | at a Terminal prompt. 49 | 50 | If this starts Python, you have a version of Python 3 installed, just not as the default Python. Please use the command python3 instead of python to start Python for the rest of this course. 51 | 52 | If you have no version of Python 3 installed, we'll need to install it. Please continue to the instructions in the next section. 53 | 54 | ## Install Python 55 | 56 | Please install Python 3.4 using your package manager, or from source using the source release at https://www.python.org/downloads/release/python-341/. 57 | 58 | Please use the command python3 instead of python to start Python for the rest of this course. 59 | 60 | ## Success! 61 | 62 | You have tested your Python installation. 63 | 64 | --- 65 | 66 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at: 67 |
jesstess@mit.edu
.
68 |
--------------------------------------------------------------------------------
/Unit1/linux_terminal_navigation.mkd:
--------------------------------------------------------------------------------
1 | # Linux command line navigation review
2 |
3 | The filesystem on your computer is like a tree made up of folders (also called "directories") and files. The filesystem has a root directory called /, and everything on your computer lives in subdirectories of this root directory.
4 |
5 | We often navigate the filesystem graphically by clicking on graphical folders. We can do the exact same navigation from the command line.
6 |
7 | There are three commands that we'll be using at a command prompt to navigate the filesystem on your computer:
8 | * ls
9 | * pwd
10 | * cd
11 |
12 | ls
lists the contents of a directory.pwd
gives the full directory path to your current directory.cd
moves you into a new directory (it stands for "change directory").
15 |
16 | Let's practice using these commands.
17 |
18 | ## Open a command prompt
19 |
20 | You can find the Terminal application at Applications/Accessories/Terminal, or it may already be on your menu bar.
21 |
22 | ## Practice using ls
, pwd
, and cd
23 |
24 | (that's an l the letter, not the number 1)
25 |
26 | Type each of these commands and hit enter:
27 |
28 | ls29 | This lists all the files in your current directory. 30 | 31 |
pwd34 | This displays the full directory path to your current directory. 35 | 36 |
cd /39 | This will change you into the
/
root directory.
40 |
41 | ls44 | This lists the contents of the
/
root directory.
45 |
46 | cd home49 | This will change you into the
home
subdirectory of the /
root directory.
50 |
51 | ls54 | You should see a list of all the files in
/home
, including the directory for your username. The directory for your username (e.g. /home/jessica) is often called your "home directory".
55 |
56 | pwd59 | This displays the full directory path to your current directory,
/home
.
60 |
61 | cd ..64 |
..
means "parent directory", so this command moved you up to the parent directory. You were in /home
, so now you are in /
, the root directory.
65 |
66 | ls69 | This lists the contents of the root directory, confirming where you are. 70 | 71 | ## Tips 72 | 73 | * You can use Tab to auto-complete directory and file names. So from inside the root directory /, if you type
cd ho
and hit Tab, the command prompt will auto-complete the directory name, and you can then hit enter to change into the /home
directory.
74 | * The command prompt maintains a command history. You can use the up arrow to cycle through old commands.
75 |
76 | ## Check your understanding
77 |
78 | Answer these questions. Experiment at the command line if you need to! If you aren't sure about an answer, ask a helper.
79 |
80 | * What directory are you in after starting a new command line prompt?
81 | * After starting a new command line prompt, how would you get to the root directory?
82 | * How do you check what files and directories are in your current working directory?
83 | * If you are in directory /home, and you want to get to /home/jesstess/projects, how would you do that?
84 | * What are 2 ways to avoid typing out a full navigation command? (hint: one requires that you've run the command before)
85 | * What is the difference between a command prompt and a Python prompt?
86 |
87 | ## Success!
88 |
89 | You've practiced using ls
, pwd
, and cd
to navigate your computer's filesystem from the command prompt.
90 |
91 | ---
92 |
93 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
94 | jesstess@mit.edu
.
95 |
--------------------------------------------------------------------------------
/Unit1/linux_text_editor.mkd:
--------------------------------------------------------------------------------
1 | # Setting up a text editor on Linux
2 |
3 |
4 | Lucky for us, Linux comes with a good, free text editor called GEdit.
5 |
6 | ## Finding GEdit
7 |
8 | To start GEdit: click Applications, point to Accessories, and click Text Editor. If you don't have this option, let a staff member know.
9 |
10 | ## How to find GEdit from a terminal
11 |
12 | If you prefer to start applications from a terminal, you can type the following into a terminal to launch GEdit:
13 |
14 | 15 | gedit 16 |17 | 18 | ## Configure gedit to indent with spaces 19 | 20 | * Click Edit -> Preferences 21 | * Select the tab labeled "Editor" 22 | * In the "Tab width" field, set it to **4** (the default is 8) 23 | * **Check** the box labeled "Insert spaces instead of tabs" 24 | * **Check** the box labeled "Enable automatic indentation" 25 | * Click Close. 26 | 27 | That's it! Now, you can hit tab to indent your code, and that indentation will actually be made of spaces. This change will help you use spaces consistently, so that Python doesn't get confused about whitespace. 28 | 29 | ## Success! 30 | 31 | If you prefer a different editor for writing code, that's also great. Just make sure you've configured it to insert spaces instead of tabs. 32 | 33 | --- 34 | 35 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at: 36 |
jesstess@mit.edu
.
37 |
--------------------------------------------------------------------------------
/Unit1/osx_python_installation.mkd:
--------------------------------------------------------------------------------
1 | # Installing Python on OSX
2 |
3 | This page walks through how to install a version of Python on OSX that is compatible with this tutorial.
4 |
5 | Any version of Python 3 will work for this tutorial. If you don't have Python installed, we'll install Python version 3.4.1.
6 |
7 | If you already have Python installed, check the Python version: if the version number starts with a 3 (as opposed to a 2), you can use it for this class and can skip to [checking your Python installation](#checking-your-python-installation).
8 |
9 | ## Download and install Python
10 |
11 | * If you are running OS X version 10.6 or later, click https://www.python.org/ftp/python/3.4.1/python-3.4.1-macosx10.6.dmg to download the Python installer.
12 | * If you are running OS X version 10.5, click and download the Python installer from https://www.python.org/ftp/python/3.4.1/python-3.4.1-macosx10.5.dmg instead.
13 | * If you have a version of OS X older than 10.5, please upgrade to a newer version of OS X before installing Python.
14 |
15 | Once the download is complete, double-click on the installer to run it and complete the installation.
16 |
17 | ## Checking your Python installation
18 |
19 | Applications/Utilities/Terminal
.28 | python3 29 |30 | 31 | and press Enter. You should see something like 32 |
33 | Python 3.4.1 (v3.4.1:d047928ae3f6, May 13 2013, 12:45:22) 34 | [GCC 4.2.1 (Apple Inc. build 5646)] on darwin 35 | Type "help", "copyright", "credits" or "license" for more information. 36 | >>> 37 |38 | 39 | You just started Python! The
>>>
indicates that you are at a new type of prompt -- a Python prompt. The command prompt let's you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.45 | exit() 46 |47 | 48 | and press Enter. This will take you back to the OS X terminal prompt.
jesstess@mit.edu
.
59 |
--------------------------------------------------------------------------------
/Unit1/osx_terminal_navigation.mkd:
--------------------------------------------------------------------------------
1 | # OSX command line navigation review
2 |
3 | The filesystem on your computer is like a tree made up of folders (also called "directories") and files. The filesystem has a root directory called /, and everything on your computer lives in subdirectories of this root directory.
4 |
5 | We often navigate the filesystem graphically by clicking on graphical folders. We can do the exact same navigation from the command line.
6 |
7 | There are three commands that we'll be using at a command prompt to navigate the filesystem on your computer:
8 | * ls
9 | * pwd
10 | * cd
11 |
12 | ls
lists the contents of a directory.pwd
gives the full directory path to your current directory.cd
moves you into a new directory (it stands for "change directory").
15 |
16 | Let's practice using these commands.
17 |
18 | ## Open a command prompt
19 |
20 | You can find the Terminal application through Spotlight, or navigate to Applications/Utilities/Terminal.
21 |
22 | ## Practice using ls
, pwd
, and cd
23 | (that's an l the letter, not the number 1)
24 |
25 | Type each of these commands and hit enter:
26 |
27 | ls28 | This lists all the files in your current directory. 29 | 30 |
pwd33 | This displays the full directory path to your current directory. 34 | 35 |
cd /38 | This will change you into the
/
root directory.
39 |
40 | ls43 | This lists the contents of the
/
root directory.
44 |
45 | cd Users48 | This will change you into the
Users
subdirectory of the /
root directory.
49 |
50 | ls53 | You should see a list of all the files in
/Users
, including the directory for your username. The directory for your username (e.g. /Users/Jessica is often called your "home directory".
54 |
55 | pwd58 | This displays the full directory path to your current directory,
/Users
.
59 |
60 | cd ..63 |
..
means "parent directory", so this command moved you up to the parent directory. You were in /Users
, so now you are in /
, the root directory.
64 |
65 | ls68 | This lists the contents of the root directory, confirming where you are. 69 | 70 | ## Tips 71 | 72 | * You can use Tab to auto-complete directory and file names. So from inside the root directory /, if you type
cd Us
and hit Tab, the command prompt will auto-complete the directory name, and you can then hit enter to change into the /Users
directory.
73 | * The command prompt maintains a command history. You can use the up arrow to cycle through old commands.
74 |
75 | ## Check your understanding
76 |
77 | Answer these questions. Experiment at the command line if you need to! If you aren't sure about an answer, ask a helper.
78 |
79 | * What directory are you in after starting a new command line prompt?
80 | * After starting a new command line prompt, how would you get to the root directory?
81 | * How do you check what files and directories are in your current working directory?
82 | * If you are in directory /Users, and you want to get to /Users/jesstess/projects, how would you do that?
83 | * What are 2 ways to avoid typing out a full navigation command? (hint: one requires that you've run the command before)
84 | * What is the difference between a command prompt and a Python prompt?
85 |
86 | ## Success!
87 |
88 | You've practiced using ls
, pwd
, and cd
to navigate your computer's filesystem from the command prompt.
89 |
90 | ---
91 |
92 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
93 | jesstess@mit.edu
.
94 |
--------------------------------------------------------------------------------
/Unit1/osx_text_editor.mkd:
--------------------------------------------------------------------------------
1 | # Installing a text editor on OSX
2 |
3 | On OSX, a good free text editor is Smultron.
4 |
5 | To download and install Smultron:
6 |
7 | * Click and download http://sourceforge.net/projects/smultron/
8 | * Open the downloaded file from your Downloads directory or the Download bar in your web browser
9 | * Drag the icon (it looks like a top-down view of a tomato) to your Dock for easy access
10 |
11 | To run Smultron:
12 |
13 | * Double-click the Smultron icon from your Dock.
14 |
15 | ## Configure Smultron to indent with spaces
16 |
17 | * Start up Smultron, and click Smultron -> Preferences. This will pop up a preferences window.
18 | * Click on the Advanced tab, and then on the Really Advanced tab within that tab.
19 | * Check the "Indent with spaces, not tabs" checkbox
20 | * Close the Preferences window.
21 |
22 | That's it! Now, you can press Tab to indent your code, and that indentation will actually be made of spaces. We do this because Python doesn't like it when we mix tabs and spaces.
23 |
24 | ## Success!
25 |
26 | Now you have an editor that you can use to open any text file, including Python programs.
27 |
28 | ---
29 |
30 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
31 | jesstess@mit.edu
.
32 |
--------------------------------------------------------------------------------
/Unit1/windows_python_installation.mkd:
--------------------------------------------------------------------------------
1 | # Installing Python on Windows
2 |
3 | This page walks through how to install a version of Python on Windows that is compatible with this tutorial.
4 |
5 | Any version of Python 3 will work for this tutorial. If you don't have Python installed, we'll install Python version 3.4.1.
6 |
7 | If you already have Python installed, check the Python version: if the version number starts with a 3 (as opposed to a 2), you can use it for this class and can skip to [setting your Path](#put-python-on-the-path).
8 |
9 | ## 1. Download and install Python
10 |
11 | cmd
. Click on the "Command Prompt" search result.
16 | cmd
into the Search field directly above the Start menu button, and click on "cmd" in the search results above the Search field.cmd
into the text box, and hit enter.C:\
prompt that appears, test your Python installation by typing:
22 |
23 | 24 | \Python34\python.exe 25 |26 | 27 | and pressing Enter. You should see something like 28 |
29 | Python 3.4.1 (v3.4.1:d047928ae3f6, May 13 2013, 12:45:22) on win32 30 | Type "help", "copyright", "credits" or "license" for more information. 31 | >>> 32 |33 | 34 | You just started Python! The
>>>
indicates that you are at a new type of prompt -- a Python prompt. The terminal prompt lets you navigate your computer and run programs, and the Python prompt lets you write and run Python code interactively.
35 |
36 | 40 | exit() 41 |42 | 43 | and press Enter. This will take you back to the Windows command prompt (the
C:\\
you saw earlier).python.exe
is the application, but we typed \Python34\python.exe
). In this step, you will configure your computer so that you can run Python without typing the ''Python34'' directory name.
49 |
50 | ### On Windows 10
51 |
52 | #### Get to System Properties
53 |
54 | 1. Right-click on the Start menu. Click the "System" entry. This will pop up a
55 | window that says "View basic information about your computer".
56 |
57 | 2. Click the "Advanced system settings" link in the left panel. This will pop up
58 | a System Properties window.
59 |
60 | 3. Click the "Environment Variables..." button. This will pop up an Environment
61 | Variables window.
62 |
63 | 4. Select the "PATH" variable and press the "Edit..." button.
64 |
65 | 5. Add the following entries for the PATH environment variable:
66 |
67 | * C:\Python34
68 | * C:\Python34\Scripts
69 |
70 | ### On Windows versions earlier than Windows 10
71 |
72 | #### Get to System Properties
73 |
74 | 1. Open up "My Computer" by clicking on the Start menu or the Windows logo in the lower-left hand corner, and navigate to "My Computer" (for Windows XP) or "Computer" (For Vista and Windows 7).
75 | 2. ''Right-click'' on the empty space in the window, and choose ''Properties''.
76 |
77 | ##### If you're using XP
78 |
79 | A window labeled "System Properties" will pop up.
80 |
81 | 1. Click the "Advanced" tab.
82 |
83 | ##### If you're not using XP
84 |
85 | A window labeled "View basic information about your computer" will appear.
86 |
87 | 1. In this window, click "Advanced system settings"
88 |
89 | A window with the title "System Properties" will appear.
90 |
91 | #### Edit the Path
92 |
93 | ;c:\python34\;c:\python34\scripts
python
into the command prompt and press return to start Python>>>
prompt.exit()and hitting enter. Now you're back at the Windows command prompt (
C:\
).jesstess@mit.edu
.
122 |
--------------------------------------------------------------------------------
/Unit1/windows_terminal_navigation.mkd:
--------------------------------------------------------------------------------
1 | # Windows command line navigation review
2 |
3 | The filesystem on your computer is like a tree made up of folders (also called "directories") and files. The filesystem has a root directory called C:\ , and everything on your computer lives in subdirectories of this root directory.
4 |
5 | We often navigate the filesystem graphically by clicking on graphical folders. We can do the exact same navigation from the command line.
6 |
7 | There are two commands that we'll be using at a command prompt to navigate the filesystem on your computer:
8 | * dir
9 | * cd
10 |
11 | dir
lists the contents of a directory.cd
moves you into a new directory (it stands for "change directory").
13 |
14 | Let's practice using these commands!
15 |
16 | ## Open a command prompt
17 |
18 | * On Windows Vista or Windows 7: click on the Start menu (the Windows logo in the lower left of the screen), type cmd
into the Search field directly above the Start menu button, and click on "cmd" in the search results above the Search field.
19 | * On Windows XP: click on the Start menu (the Windows logo in the lower left of the screen), click on "Run...", type cmd
into the text box, and hit enter.
20 |
21 | ## Practice using dir
and cd
22 |
23 | Type each of these commands and hit enter:
24 |
25 | dir26 | This lists all the files in your current directory. 27 | 28 |
cd C:\31 | This will change you into the
C:\
directory.
32 |
33 | dir36 | This lists the contents of the
C:\
directory.
37 |
38 | cd Users41 | This will change you into the
Users
subdirectory of the C:\
directory.
42 |
43 | dir46 | You should see the names of all the files and directories in
C:\Users
.
47 |
48 | cd ..51 |
..
means "parent directory", so this command moved you up to the parent directory. You were in C:\Users
, so now you are in C:\
, the root directory.
52 |
53 | dir56 | This lists the contents of the root directory, confirming where you are. 57 | 58 | ## Tips 59 | 60 | * You can use Tab to auto-complete directory and file names. So from inside the root directory, if you type
cd Use
and hit Tab, the command prompt will auto-complete the directory name, and you can then hit enter to change into the C:\Users
directory.
61 | * The command prompt maintains a command history. You can use the up arrow to cycle through old commands.
62 | * Note that the text that makes up the command prompt changes as you move around directories. The command prompt will always give the full directory path to your current directory.
63 |
64 | ## Check your understanding
65 |
66 | Answer these questions. Experiment at the command line if you need to! If you aren't sure about an answer, ask a helper.
67 |
68 | * What directory are you in after starting a new command line prompt?
69 | * After starting a new command line prompt, how would you get to the root directory?
70 | * How do you check what files and directories are in your current working directory?
71 | * If you are in directory C:\Users, and you want to get to C:\Users\jesstess\projects, how would you do that?
72 | * What are 2 ways to avoid typing out a full navigation command? (hint: one requires that you've run the command before)
73 | * What is the difference between a command prompt and a Python prompt?
74 |
75 | ## Success!
76 |
77 | You've practiced using dir
and cd
to navigate your computer's filesystem from the command prompt.
78 |
79 | ---
80 |
81 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
82 | jesstess@mit.edu
.
83 |
--------------------------------------------------------------------------------
/Unit1/windows_text_editor.mkd:
--------------------------------------------------------------------------------
1 | # Installing a text editor on Windows
2 |
3 | On Windows, a good free text editor is Notepad++. Note that this is unrelated to the Windows default program called Notepad!
4 |
5 | To install Notepad++:
6 |
7 | * Click and download http://download.tuxfamily.org/notepadplus/archive/6.3.3/npp.6.3.3.Installer.exe
8 | * Run the installer, and follow the process to the end.
9 |
10 | To run it:
11 |
12 | * In Windows Vista or Windows 7, click on the Start menu, type ''Notepad++'' in the Search Field, and hit enter.
13 | * In Windows XP, click on the Start menu, navigate to All Programs, and then navigate to Notepad++.
14 |
15 | ## Configure Notepad++ to indent with spaces
16 |
17 | * Click Settings -> Preferences
18 | * Find the tab labeled "Language Menu/Tab Settings"
19 | * Find the box labeled "Replace by space", and make sure it is '''checked'''
20 | * Click Close.
21 |
22 | That's it! Now, you can press Tab to indent your code, and that indentation will actually be made of spaces. We do this because Python doesn't like it when we mix tabs and spaces.
23 |
24 | ## Success!
25 |
26 | Now you have an editor that you can use to open any text file, including Python programs.
27 |
28 | ---
29 |
30 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
31 | jesstess@mit.edu
.
32 |
--------------------------------------------------------------------------------
/Unit2/video1.mkd:
--------------------------------------------------------------------------------
1 | # Files for Unit 2
2 |
3 | Please either clone this repository and navigate to the `wordplay` directory, or
4 | download these files individually to a `wordplay` directory. We'll use them
5 | throughout Unit 2.
6 |
7 | * [scrabble.py](./wordplay/scrabble.py)
8 | * [sowpods.txt](./wordplay/sowpods.txt)
9 |
10 | ---
11 |
12 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
13 | jesstess@mit.edu
.
14 |
--------------------------------------------------------------------------------
/Unit2/wordplay/scrabble.py:
--------------------------------------------------------------------------------
1 | WORD_LIST = "sowpods.txt"
2 | wordlist = open(WORD_LIST).readlines()
3 | # Get rid of newlines
4 | wordlist = [word.lower().strip() for word in wordlist]
5 |
6 | scores = {"a": 1, "c": 3, "b": 3, "e": 1, "d": 2, "g": 2,
7 | "f": 4, "i": 1, "h": 4, "k": 5, "j": 8, "m": 3,
8 | "l": 1, "o": 1, "n": 1, "q": 10, "p": 3, "s": 1,
9 | "r": 1, "u": 1, "t": 1, "w": 4, "v": 4, "y": 4,
10 | "x": 8, "z": 10}
11 |
--------------------------------------------------------------------------------
/Unit3/dictionaries.mkd:
--------------------------------------------------------------------------------
1 | # Dictionaries review
2 |
3 | * Use dictionaries to store key/value pairs.
4 | * Dictionaries do not guarantee ordering.
5 | * A given key can only have one value, but multiple keys can have the same value.
6 |
7 | ## Initialization
8 |
9 | 10 | >>> my_dict = {} 11 | >>> my_dict 12 | {} 13 | >>> your_dict = {"Alice" : "chocolate", "Bob" : "strawberry", "Cara" : "mint chip"} 14 | >>> your_dict 15 | {'Bob': 'strawberry', 'Cara': 'mint chip', 'Alice': 'chocolate'} 16 |17 | 18 | ## Adding elements to a dictionary 19 | 20 |
21 | >>> your_dict["Dora"] = "vanilla" 22 | >>> your_dict 23 | {'Bob': 'strawberry', 'Cara': 'mint chip', 'Dora': 'vanilla', 'Alice': 'chocolate'} 24 |25 | 26 | ## Accessing elements of a dictionary 27 | 28 |
29 | >>> your_dict["Alice"] 30 | 'chocolate' 31 | >>> your_dict.get("Alice") 32 | 'chocolate' 33 |34 | 35 |
36 | >>> your_dict["Eve"] 37 | Traceback (most recent call last): 38 | File "<stdin>", line 1, in <module> 39 | KeyError: 'Eve' 40 | >>> "Eve" in her_dict 41 | False 42 | >>> "Alice" in her_dict 43 | True 44 | >>> your_dict.get("Eve") 45 | >>> person = your_dict.get("Eve") 46 | >>> print person 47 | None 48 | >>> print type(person) 49 | <type 'NoneType'> 50 | >>> your_dict.get("Alice") 51 | 'coconut' 52 |53 | 54 | ## Changing elements of a dictionary 55 | 56 |
57 | >>> your_dict["Alice"] = "coconut" 58 | >>> your_dict 59 | {'Bob': 'strawberry', 'Cara': 'mint chip', 'Dora': 'vanilla', 'Alice': 'coconut'} 60 |61 | 62 | ## Types 63 | 64 |
65 | >>> type(my_dict) 66 | <type 'dict'> 67 |68 | 69 | --- 70 | 71 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at: 72 |
jesstess@mit.edu
.
73 |
--------------------------------------------------------------------------------
/Unit3/lists.mkd:
--------------------------------------------------------------------------------
1 | # Lists review
2 |
3 | * Use lists to store data where order matters.
4 | * Lists are indexed starting with 0.
5 |
6 | ## List initialization
7 |
8 | 9 | >>> my_list = [] 10 | >>> my_list 11 | [] 12 | >>> your_list = ["a", "b", "c", 1, 2, 3] 13 | >>> your_list 14 | ['a', 'b', 'c', 1, 2, 3] 15 |16 | 17 | ## Access and adding elements to a list 18 | 19 |
20 | >>> len(my_list) 21 | 0 22 | >>> my_list[0] 23 | Traceback (most recent call last): 24 | File "<stdin>", line 1, in <module> 25 | IndexError: list index out of range 26 | >>> my_list.append("Alice") 27 | >>> my_list 28 | ['Alice'] 29 | >>> len(my_list) 30 | 1 31 | >>> my_list[0] 32 | 'Alice' 33 | >>> my_list.insert(0, "Amy") 34 | >>> my_list 35 | ['Amy', 'Alice'] 36 |37 | 38 |
39 | >>> my_list = ['Amy', 'Alice'] 40 | >>> 'Amy' in my_list 41 | True 42 | >>> 'Bob' in my_list 43 | False 44 |45 | 46 | ## Changing elements in a list 47 | 48 |
49 | >>> your_list = [] 50 | >>> your_list.append("apples") 51 | >>> your_list[0] 52 | 'apples' 53 | >>> your_list[0] = "bananas" 54 | >>> your_list 55 | ['bananas'] 56 |57 | 58 | ## Slicing lists 59 | 60 |
61 | >>> her_list = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'] 62 | >>> her_list[0] 63 | 'a' 64 | >>> her_list[0:3] 65 | ['a', 'b', 'c'] 66 | >>> her_list[:3] 67 | ['a', 'b', 'c'] 68 | >>> her_list[-1] 69 | 'h' 70 | >>> her_list[5:] 71 | ['f', 'g', 'h'] 72 | >>> her_list[:] 73 | ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'] 74 |75 | 76 | ## Strings are a lot like lists 77 | 78 |
79 | >>> my_string = "Hello World" 80 | >>> my_string[0] 81 | 'H' 82 | >>> my_string[:5] 83 | 'Hello' 84 | >>> my_string[6:] 85 | 'World' 86 | >>> my_string = my_string[:6] + "Jessica" 87 | >>> my_string 88 | 'Hello Jessica' 89 |90 | 91 | * One big way in which strings are different from lists is that lists are mutable (you can change them), and strings are immutable (you can't change them). To "change" a string you have to make a copy: 92 | 93 |
94 | >>> h = "Hello" 95 | >>> h[0] = "J" 96 | Traceback (most recent call last): 97 | File "<stdin>", line 1, in <module> 98 | TypeError: 'str' object does not support item assignment 99 | >>> h = "J" + h[1:] 100 | >>> h 101 | 'Jello' 102 |103 | 104 | ## Types 105 | 106 |
107 | >>> type(my_list) 108 | <type 'list'> 109 |110 | 111 | --- 112 | 113 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at: 114 |
jesstess@mit.edu
.
115 |
--------------------------------------------------------------------------------
/Unit3/sonnets/extract_sonnet_words.py:
--------------------------------------------------------------------------------
1 | import string
2 |
3 | sonnets = open("sonnets.txt").readlines()
4 | word_set = set([elt.strip() for elt in open("sowpods.txt")])
5 | sonnet_words = set()
6 |
7 | def strip_punctuation(word):
8 | # Remove surrounding punctuation. If there's an apostrophe in the
9 | # middle of the word, skip it.
10 | word.replace("-", " ")
11 | apostrophe_index = word.find("'")
12 | if apostrophe_index != -1:
13 | return None
14 | return word.strip(string.punctuation)
15 |
16 | for line in sonnets:
17 | # Split apart hyphenated words.
18 | line_words = line.replace("-", " ").strip().split()
19 |
20 | # It's an empty line or a sonnet number; skip it.
21 | if len(line_words) <= 1:
22 | continue
23 |
24 | for word in line_words:
25 | stripped = strip_punctuation(word)
26 | if stripped and len(stripped) > 1:
27 | sonnet_words.add(stripped.upper())
28 |
29 | sonnet_words = list(sonnet_words)
30 | sonnet_words.sort()
31 |
32 | f = open("sonnet_words.txt", "w")
33 | for word in sonnet_words:
34 | f.write(word + "\n")
35 | f.close()
36 |
--------------------------------------------------------------------------------
/Unit3/sonnets/sonnet_words.txt:
--------------------------------------------------------------------------------
1 | ABHOR
2 | ABIDE
3 | ABLE
4 | ABOUT
5 | ABOVE
6 | ABSENCE
7 | ABSENT
8 | ABUNDANCE
9 | ABUNDANT
10 | ABUSE
11 | ABUSES
12 | ABYSM
13 | ACCENTS
14 | ACCEPTABLE
15 | ACCEPTANCE
16 | ACCESSARY
17 | ACCIDENT
18 | ACCIDENTS
19 | ACCOUNT
20 | ACCUMULATE
21 | ACCUSE
22 | ACCUSING
23 | ACHIEVE
24 | ACKNOWLEDGE
25 | ACQUAINTANCE
26 | ACQUAINTED
27 | ACT
28 | ACTION
29 | ACTIVE
30 | ACTOR
31 | ADD
32 | ADDED
33 | ADDETH
34 | ADDING
35 | ADDITION
36 | ADIEU
37 | ADJUNCT
38 | ADMIRE
39 | ADMIRED
40 | ADMIRING
41 | ADMIT
42 | ADMITTED
43 | ADONIS
44 | ADORE
45 | ADULTERATE
46 | ADVANCE
47 | ADVANTAGE
48 | ADVERSE
49 | ADVOCATE
50 | AFAR
51 | AFFABLE
52 | AFFAIRS
53 | AFFECTIONS
54 | AFFORD
55 | AFFORDS
56 | AFLOAT
57 | AFRESH
58 | AFTER
59 | AFTERWARDS
60 | AGAIN
61 | AGAINST
62 | AGE
63 | AGES
64 | AGGRAVATE
65 | AH
66 | AID
67 | AIR
68 | ALACK
69 | ALAS
70 | ALCHEMY
71 | ALIEN
72 | ALIKE
73 | ALIVE
74 | ALL
75 | ALLEGE
76 | ALLOW
77 | ALMOST
78 | ALOFT
79 | ALONE
80 | ALREADY
81 | ALTER
82 | ALTERATION
83 | ALTERING
84 | ALTERS
85 | ALTHOUGH
86 | ALWAYS
87 | AM
88 | AMAZETH
89 | AMBUSH
90 | AMENDS
91 | AMISS
92 | AMONG
93 | AN
94 | AND
95 | ANEW
96 | ANGEL
97 | ANGER
98 | ANGRY
99 | ANNOY
100 | ANON
101 | ANOTHER
102 | ANSWER
103 | ANSWERED
104 | ANSWERS
105 | ANTICIPATE
106 | ANTIQUE
107 | ANTIQUITY
108 | ANY
109 | ANYTHING
110 | APPAREL
111 | APPEAL
112 | APPEAR
113 | APPEARANCE
114 | APPEARING
115 | APPEARS
116 | APPETITE
117 | APPLE
118 | APPLYING
119 | APPROVE
120 | APRIL
121 | ARE
122 | ARGUMENT
123 | ARIGHT
124 | ARISE
125 | ARISING
126 | ARRAY
127 | ARREST
128 | ART
129 | ARTS
130 | AS
131 | ASHES
132 | ASIDE
133 | ASKANCE
134 | ASKED
135 | ASLEEP
136 | ASPECT
137 | ASSEMBLE
138 | ASSISTANCE
139 | ASSURE
140 | ASSURED
141 | ASTONISHED
142 | ASTRONOMY
143 | AT
144 | ATTAINT
145 | ATTAINTED
146 | ATTEND
147 | ATTENDING
148 | AUDIT
149 | AUGHT
150 | AUGURS
151 | AUTHORITY
152 | AUTHORIZING
153 | AUTUMN
154 | AWAKE
155 | AWAKES
156 | AWARDS
157 | AWAY
158 | AY
159 | AYE
160 | BABE
161 | BACK
162 | BACKWARD
163 | BAD
164 | BADGES
165 | BADNESS
166 | BAIL
167 | BAIT
168 | BALMY
169 | BANKRUPT
170 | BANKS
171 | BANQUET
172 | BAR
173 | BARE
174 | BARENESS
175 | BARK
176 | BARREN
177 | BARRENLY
178 | BARS
179 | BASE
180 | BASES
181 | BASEST
182 | BASTARD
183 | BATH
184 | BATTERING
185 | BAY
186 | BE
187 | BEAMS
188 | BEAR
189 | BEARD
190 | BEARER
191 | BEARING
192 | BEARS
193 | BEAST
194 | BEATED
195 | BEATEN
196 | BEAUTEOUS
197 | BEAUTIES
198 | BEAUTIFUL
199 | BEAUTY
200 | BECAUSE
201 | BECK
202 | BECOME
203 | BECOMES
204 | BECOMING
205 | BED
206 | BEEN
207 | BEFITS
208 | BEFORE
209 | BEFRIENDS
210 | BEGGAR
211 | BEGIN
212 | BEGINS
213 | BEGUILE
214 | BEHAVIOUR
215 | BEHIND
216 | BEHOLD
217 | BEING
218 | BELIED
219 | BELIEVE
220 | BELIEVED
221 | BELL
222 | BELONG
223 | BELONGS
224 | BELOVED
225 | BEMOANED
226 | BENDING
227 | BENDS
228 | BENEFIT
229 | BENT
230 | BEQUEST
231 | BEREFT
232 | BESEECHERS
233 | BESEEM
234 | BESHREW
235 | BESIDE
236 | BESIDES
237 | BESIEGE
238 | BEST
239 | BESTOW
240 | BETRAY
241 | BETRAYING
242 | BETTER
243 | BETTERING
244 | BETWIXT
245 | BEVEL
246 | BEWAILED
247 | BEWEEP
248 | BEYOND
249 | BID
250 | BIDE
251 | BIDS
252 | BIER
253 | BIG
254 | BIND
255 | BIRD
256 | BIRDS
257 | BIRTH
258 | BITTER
259 | BITTERNESS
260 | BLACK
261 | BLAME
262 | BLANKS
263 | BLAZON
264 | BLENCHES
265 | BLESSED
266 | BLESSES
267 | BLESSING
268 | BLESSINGS
269 | BLEST
270 | BLIND
271 | BLINDNESS
272 | BLISS
273 | BLOOD
274 | BLOODY
275 | BLOOMS
276 | BLOT
277 | BLOTS
278 | BLOW
279 | BLUNT
280 | BLUNTER
281 | BLUNTING
282 | BLUSH
283 | BLUSHING
284 | BOAST
285 | BOAT
286 | BODY
287 | BOLD
288 | BOLDNESS
289 | BOND
290 | BONDS
291 | BONES
292 | BOOK
293 | BOOT
294 | BOOTLESS
295 | BORE
296 | BORN
297 | BORNE
298 | BORROWED
299 | BOSOM
300 | BOSOMS
301 | BOTH
302 | BOUGH
303 | BOUGHS
304 | BOUND
305 | BOUNDLESS
306 | BOUNTEOUS
307 | BOUNTY
308 | BOW
309 | BOWER
310 | BOY
311 | BRAG
312 | BRAIN
313 | BRAINS
314 | BRAND
315 | BRASS
316 | BRAVE
317 | BRAVERY
318 | BREACH
319 | BREAK
320 | BREAST
321 | BREASTS
322 | BREATH
323 | BREATHE
324 | BREATHED
325 | BREATHERS
326 | BREATHES
327 | BRED
328 | BREED
329 | BREEDS
330 | BRIEF
331 | BRIGHT
332 | BRIGHTNESS
333 | BRING
334 | BRINGS
335 | BRISTLY
336 | BROAD
337 | BROILS
338 | BROKE
339 | BROKEN
340 | BROOD
341 | BROUGHT
342 | BROW
343 | BUD
344 | BUDDING
345 | BUDS
346 | BUILDED
347 | BUILDING
348 | BUILT
349 | BURDEN
350 | BURIED
351 | BURIEST
352 | BURN
353 | BURNING
354 | BURTHEN
355 | BURTHENS
356 | BUSY
357 | BUT
358 | BUY
359 | BY
360 | CALL
361 | CALLS
362 | CAME
363 | CAN
364 | CANDLES
365 | CANKER
366 | CANNOT
367 | CANOPY
368 | CANST
369 | CAPTAIN
370 | CAPTIVE
371 | CAR
372 | CARCANET
373 | CARE
374 | CAREFUL
375 | CARRY
376 | CARVE
377 | CASE
378 | CAST
379 | CATCH
380 | CAUSE
381 | CEASE
382 | CELESTIAL
383 | CENSURES
384 | CENTRE
385 | CEREMONY
386 | CERTAIN
387 | CHANCE
388 | CHANGE
389 | CHANGES
390 | CHANGING
391 | CHARACTER
392 | CHARGE
393 | CHARTER
394 | CHARY
395 | CHASE
396 | CHASTE
397 | CHEAP
398 | CHEATER
399 | CHECK
400 | CHECKED
401 | CHEEK
402 | CHEEKS
403 | CHEER
404 | CHEERED
405 | CHERISH
406 | CHERUBINS
407 | CHEST
408 | CHIDE
409 | CHIDING
410 | CHIEF
411 | CHILD
412 | CHILDREN
413 | CHIPS
414 | CHOIRS
415 | CHOOSE
416 | CHOSE
417 | CHRONICLE
418 | CHURL
419 | CHURLS
420 | CIVIL
421 | CLAY
422 | CLEAN
423 | CLEAR
424 | CLEARER
425 | CLEARS
426 | CLERK
427 | CLOAK
428 | CLOCK
429 | CLOSET
430 | CLOSURE
431 | CLOUD
432 | CLOUDS
433 | CLOYING
434 | COLD
435 | COLOUR
436 | COME
437 | COMES
438 | COMFORT
439 | COMING
440 | COMMANDED
441 | COMMENCE
442 | COMMEND
443 | COMMENT
444 | COMMENTS
445 | COMMIT
446 | COMMITS
447 | COMMITTED
448 | COMMON
449 | COMPARE
450 | COMPASS
451 | COMPEERS
452 | COMPILE
453 | COMPLAIN
454 | COMPLEXION
455 | COMPOSED
456 | COMPOSITION
457 | COMPOUND
458 | COMPOUNDED
459 | COMPOUNDS
460 | CONCEIT
461 | CONCORD
462 | CONDEMNED
463 | CONFESS
464 | CONFINE
465 | CONFOUND
466 | CONFOUNDED
467 | CONFOUNDING
468 | CONFOUNDS
469 | CONQUEST
470 | CONSCIENCE
471 | CONSECRATE
472 | CONSENT
473 | CONSIDER
474 | CONSPIRE
475 | CONSTANCY
476 | CONSTANT
477 | CONTAIN
478 | CONTAINS
479 | CONTEND
480 | CONTENT
481 | CONTENTED
482 | CONTENTS
483 | CONTINUAL
484 | CONTRACTED
485 | CONTRARY
486 | CONTROL
487 | CONTROLLING
488 | CONVERTED
489 | CONVERTEST
490 | COOL
491 | COOLS
492 | COPY
493 | CORAL
494 | CORRECT
495 | CORRECTION
496 | CORRESPONDENCE
497 | CORRUPT
498 | CORRUPTING
499 | COST
500 | COSTLY
501 | COSTS
502 | COULD
503 | COULDST
504 | COUNT
505 | COUNTED
506 | COUNTENANCE
507 | COUNTERFEIT
508 | COUNTERPART
509 | COUNTING
510 | COUPLEMENT
511 | COURSE
512 | COURSES
513 | COVER
514 | COVETOUS
515 | COWARD
516 | CRAVE
517 | CRAWLS
518 | CREATED
519 | CREATING
520 | CREATION
521 | CREATURE
522 | CREATURES
523 | CREDIT
524 | CREEP
525 | CRESTS
526 | CRIES
527 | CRIME
528 | CRITIC
529 | CROOKED
530 | CROSS
531 | CROW
532 | CROWN
533 | CROWNED
534 | CROWNING
535 | CRUEL
536 | CRY
537 | CRYING
538 | CRYSTAL
539 | CUNNING
540 | CUP
541 | CUPID
542 | CURE
543 | CURES
544 | CURIOUS
545 | CURLS
546 | CURSE
547 | CUT
548 | DAILY
549 | DANCING
550 | DARE
551 | DARK
552 | DARKENING
553 | DARKLY
554 | DARKNESS
555 | DARLING
556 | DART
557 | DATE
558 | DATELESS
559 | DATES
560 | DAY
561 | DAYS
562 | DEAD
563 | DEAF
564 | DEAR
565 | DEARER
566 | DEAREST
567 | DEARLY
568 | DEARTH
569 | DEARTHS
570 | DEATH
571 | DEATHS
572 | DEBATE
573 | DEBATETH
574 | DEBT
575 | DEBTOR
576 | DECAY
577 | DECAYS
578 | DECEASE
579 | DECEASED
580 | DECEIVE
581 | DECEIVED
582 | DECEIVEST
583 | DECLINES
584 | DECREASE
585 | DECREE
586 | DECREES
587 | DECREPIT
588 | DEDICATED
589 | DEEDS
590 | DEEM
591 | DEEP
592 | DEEPEST
593 | DEFACE
594 | DEFEAT
595 | DEFEATED
596 | DEFECT
597 | DEFECTS
598 | DEFENCE
599 | DEFENDANT
600 | DEFINE
601 | DEFY
602 | DELAYED
603 | DELIGHT
604 | DELIGHTED
605 | DELIGHTS
606 | DELIVERS
607 | DELVES
608 | DENIED
609 | DENOTE
610 | DENY
611 | DEPART
612 | DEPARTEST
613 | DEPEND
614 | DEPENDS
615 | DERIVE
616 | DESCRIBE
617 | DESCRIPTIONS
618 | DESERT
619 | DESERTS
620 | DESERVE
621 | DESERVES
622 | DESERVING
623 | DESIRE
624 | DESIRED
625 | DESIRING
626 | DESPAIR
627 | DESPERATE
628 | DESPISE
629 | DESPISED
630 | DESPISING
631 | DESPITE
632 | DESTROYS
633 | DETAIN
634 | DETERMINATE
635 | DETERMINATION
636 | DETERMINED
637 | DEVIL
638 | DEVISE
639 | DEVOUR
640 | DEVOURING
641 | DIAL
642 | DID
643 | DIDST
644 | DIE
645 | DIED
646 | DIES
647 | DIEST
648 | DIFFERENCE
649 | DIFFERENT
650 | DIG
651 | DIGNIFIED
652 | DIGNIFIES
653 | DIGNITY
654 | DIRECTED
655 | DIRECTLY
656 | DISABLED
657 | DISCLOSES
658 | DISCONTENT
659 | DISCOURSE
660 | DISDAIN
661 | DISDAINETH
662 | DISDAINS
663 | DISEASE
664 | DISGRACE
665 | DISPATCH
666 | DISPENSE
667 | DISPERSE
668 | DISPRAISE
669 | DISSUADE
670 | DISTANCE
671 | DISTILLATION
672 | DISTILLS
673 | DISTRACTION
674 | DIVERT
675 | DIVIDE
676 | DIVIDED
677 | DIVINE
678 | DIVINING
679 | DO
680 | DOCTOR
681 | DOING
682 | DONE
683 | DOOM
684 | DOST
685 | DOTE
686 | DOTH
687 | DOTING
688 | DOUBLE
689 | DOUBT
690 | DOUBTING
691 | DOVE
692 | DOWN
693 | DRAW
694 | DRAWN
695 | DREADING
696 | DREAM
697 | DREAMING
698 | DREAMS
699 | DREGS
700 | DRESS
701 | DRESSING
702 | DRESSINGS
703 | DRINK
704 | DRINKS
705 | DROOPING
706 | DROP
707 | DROPS
708 | DROSS
709 | DROWN
710 | DROWNS
711 | DRUDGE
712 | DRUGS
713 | DRUNK
714 | DRY
715 | DUE
716 | DULL
717 | DULLING
718 | DULLY
719 | DULNESS
720 | DUMB
721 | DUN
722 | DURST
723 | DUST
724 | DUTEOUS
725 | DUTY
726 | DWELL
727 | DWELLERS
728 | DWELLS
729 | DYE
730 | DYING
731 | EACH
732 | EAGER
733 | EAR
734 | EARLY
735 | EARS
736 | EARTH
737 | EARTHLY
738 | EASE
739 | EAST
740 | EASY
741 | EAT
742 | EATING
743 | ECLIPSE
744 | ECLIPSES
745 | EDGE
746 | EFFECT
747 | EFFECTUALLY
748 | EISEL
749 | EITHER
750 | ELDER
751 | ELEMENTS
752 | ELOQUENCE
753 | ELSE
754 | ELSEWHERE
755 | EMBASSAGE
756 | EMBASSY
757 | ENCLOSE
758 | END
759 | ENDEARED
760 | ENDING
761 | ENDLESS
762 | ENDURE
763 | ENEMIES
764 | ENFEEBLED
765 | ENFORCED
766 | ENGRAFT
767 | ENGRAFTED
768 | ENJOY
769 | ENJOYER
770 | ENJOYS
771 | ENLIGHTEN
772 | ENMITY
773 | ENOUGH
774 | ENRICH
775 | ENSCONCE
776 | ENTERTAIN
777 | ENTITLED
778 | ENTOMBED
779 | ENVY
780 | EPITAPH
781 | EQUAL
782 | EQUIPAGE
783 | ERE
784 | ERR
785 | ERROR
786 | ERRORS
787 | ERST
788 | ESSAYS
789 | ESTEEM
790 | ESTEEMING
791 | ESTIMATE
792 | ETERNAL
793 | ETERNITY
794 | EVEN
795 | EVER
796 | EVERMORE
797 | EVERY
798 | EVERYWHERE
799 | EVIDENT
800 | EVIL
801 | EXAMPLE
802 | EXCEED
803 | EXCEEDED
804 | EXCEEDS
805 | EXCEL
806 | EXCELLENCE
807 | EXCELLENT
808 | EXCEPT
809 | EXCESS
810 | EXCHEQUER
811 | EXCUSE
812 | EXCUSING
813 | EXECUTOR
814 | EXPENSE
815 | EXPIATE
816 | EXPIRE
817 | EXPIRED
818 | EXPRESS
819 | EXPRESSING
820 | EXTANT
821 | EXTERN
822 | EXTERNAL
823 | EXTREME
824 | EXTREMITY
825 | EYE
826 | EYELIDS
827 | EYES
828 | FACE
829 | FACES
830 | FACULTY
831 | FADE
832 | FADETH
833 | FADING
834 | FAINT
835 | FAIR
836 | FAIRER
837 | FAIREST
838 | FAIRING
839 | FAIRLY
840 | FAITH
841 | FALL
842 | FALLS
843 | FALSE
844 | FALSEHOOD
845 | FALSELY
846 | FAME
847 | FAMILIAR
848 | FAMINE
849 | FAMOUSED
850 | FANGLED
851 | FAR
852 | FAREWELL
853 | FARING
854 | FARTHER
855 | FARTHEST
856 | FASHION
857 | FAST
858 | FASTER
859 | FATE
860 | FATHER
861 | FAULT
862 | FAULTS
863 | FAVOUR
864 | FAVOURITES
865 | FAWN
866 | FEAR
867 | FEARFUL
868 | FEARFULLY
869 | FEARING
870 | FEARS
871 | FEAST
872 | FEASTING
873 | FEASTS
874 | FEATHERS
875 | FEATURE
876 | FEATURELESS
877 | FED
878 | FEE
879 | FEEBLE
880 | FEED
881 | FEEDING
882 | FEEDS
883 | FEEL
884 | FEELING
885 | FELL
886 | FELT
887 | FEMALE
888 | FESTER
889 | FEVER
890 | FEW
891 | FICKLE
892 | FIELD
893 | FIEND
894 | FIERCE
895 | FIERY
896 | FIGHT
897 | FIGURE
898 | FIGURES
899 | FILCHING
900 | FILL
901 | FIND
902 | FINDING
903 | FINDS
904 | FINE
905 | FINGER
906 | FINGERS
907 | FIRE
908 | FIRED
909 | FIRM
910 | FIRST
911 | FITS
912 | FITTED
913 | FIVE
914 | FIXED
915 | FLAME
916 | FLATTER
917 | FLATTERER
918 | FLATTERY
919 | FLED
920 | FLEECE
921 | FLEETING
922 | FLEETS
923 | FLESH
924 | FLIES
925 | FLOURISH
926 | FLOW
927 | FLOWER
928 | FLOWERS
929 | FLOWN
930 | FLY
931 | FOE
932 | FOES
933 | FOISON
934 | FOIST
935 | FOLD
936 | FOLLOW
937 | FOLLOWED
938 | FOLLOWS
939 | FOLLY
940 | FOND
941 | FOOD
942 | FOOL
943 | FOOLISH
944 | FOOLS
945 | FOOT
946 | FOOTED
947 | FOR
948 | FORBEAR
949 | FORBID
950 | FORBIDDEN
951 | FORCE
952 | FORCED
953 | FORE
954 | FOREGONE
955 | FORESTS
956 | FORFEIT
957 | FORGED
958 | FORGET
959 | FORGETFUL
960 | FORGETFULNESS
961 | FORGIVE
962 | FORGOING
963 | FORGOT
964 | FORGOTTEN
965 | FORLORN
966 | FORM
967 | FORMER
968 | FORSAKE
969 | FORSAKEN
970 | FORSWORN
971 | FORTH
972 | FORTIFY
973 | FORTUNE
974 | FORTY
975 | FORWARD
976 | FORWARDS
977 | FOUL
978 | FOUND
979 | FOUNTAIN
980 | FOUNTAINS
981 | FOUR
982 | FRAGRANT
983 | FRAILER
984 | FRAILTIES
985 | FRAME
986 | FRANK
987 | FRANTIC
988 | FREE
989 | FREEDOM
990 | FREEZINGS
991 | FREQUENT
992 | FRESH
993 | FRESHER
994 | FRIEND
995 | FRIENDS
996 | FROM
997 | FRONT
998 | FROST
999 | FROWN
1000 | FROWNS
1001 | FRUIT
1002 | FUEL
1003 | FULFIL
1004 | FULL
1005 | FULNESS
1006 | FUNCTION
1007 | FURROWS
1008 | FURY
1009 | GAIN
1010 | GAINER
1011 | GAINS
1012 | GAIT
1013 | GARDENS
1014 | GARMENTS
1015 | GATE
1016 | GATES
1017 | GAUDY
1018 | GAVE
1019 | GAY
1020 | GAZE
1021 | GAZED
1022 | GAZERS
1023 | GAZETH
1024 | GAZING
1025 | GEMS
1026 | GENERAL
1027 | GENTLE
1028 | GENTLEST
1029 | GENTLY
1030 | GET
1031 | GHASTLY
1032 | GHOST
1033 | GIFT
1034 | GIFTS
1035 | GILDED
1036 | GILDING
1037 | GIRDED
1038 | GIVE
1039 | GIVEN
1040 | GIVES
1041 | GIVING
1042 | GLAD
1043 | GLADLY
1044 | GLANCE
1045 | GLASS
1046 | GLAZED
1047 | GLORIOUS
1048 | GLORY
1049 | GLOWING
1050 | GLUTTON
1051 | GLUTTONING
1052 | GO
1053 | GOD
1054 | GODDESS
1055 | GOES
1056 | GOEST
1057 | GOING
1058 | GOLD
1059 | GOLDEN
1060 | GONE
1061 | GOOD
1062 | GOODLY
1063 | GOODNESS
1064 | GOT
1065 | GOVERNS
1066 | GRACE
1067 | GRACED
1068 | GRACES
1069 | GRACIOUS
1070 | GRACIOUSLY
1071 | GRANT
1072 | GRANTING
1073 | GRAVE
1074 | GRAVEN
1075 | GRAVES
1076 | GRAVITY
1077 | GREAT
1078 | GREATER
1079 | GREATEST
1080 | GRECIAN
1081 | GREEN
1082 | GREET
1083 | GREW
1084 | GREY
1085 | GRIEF
1086 | GRIEFS
1087 | GRIEVANCES
1088 | GRIEVE
1089 | GRIND
1090 | GROAN
1091 | GROANS
1092 | GROSS
1093 | GROSSLY
1094 | GROUND
1095 | GROUNDED
1096 | GROW
1097 | GROWING
1098 | GROWN
1099 | GROWS
1100 | GROWTH
1101 | GUARD
1102 | GUESS
1103 | GUEST
1104 | GUIDES
1105 | GUILT
1106 | GUILTY
1107 | GULLS
1108 | GUST
1109 | GUSTS
1110 | HABIT
1111 | HABITATION
1112 | HAD
1113 | HADST
1114 | HAIR
1115 | HAIRS
1116 | HALF
1117 | HALT
1118 | HAND
1119 | HANDS
1120 | HANG
1121 | HANGING
1122 | HAP
1123 | HAPLY
1124 | HAPPIER
1125 | HAPPIES
1126 | HAPPY
1127 | HARD
1128 | HARDER
1129 | HARDEST
1130 | HARMFUL
1131 | HARSH
1132 | HARVEST
1133 | HAST
1134 | HASTE
1135 | HASTEN
1136 | HATE
1137 | HATED
1138 | HATETH
1139 | HATH
1140 | HATRED
1141 | HAVE
1142 | HAVING
1143 | HAWKS
1144 | HE
1145 | HEAD
1146 | HEALS
1147 | HEALTH
1148 | HEALTHFUL
1149 | HEAR
1150 | HEARD
1151 | HEARING
1152 | HEARSAY
1153 | HEART
1154 | HEARTED
1155 | HEARTS
1156 | HEAT
1157 | HEATS
1158 | HEAVEN
1159 | HEAVENLY
1160 | HEAVILY
1161 | HEAVY
1162 | HEED
1163 | HEIGHT
1164 | HEINOUS
1165 | HEIR
1166 | HELD
1167 | HELL
1168 | HELP
1169 | HEMS
1170 | HENCE
1171 | HER
1172 | HERALD
1173 | HERD
1174 | HERE
1175 | HEREIN
1176 | HERETIC
1177 | HERS
1178 | HERSELF
1179 | HID
1180 | HIDDEN
1181 | HIDE
1182 | HIDEOUS
1183 | HIDES
1184 | HIDING
1185 | HIED
1186 | HIGH
1187 | HIGHMOST
1188 | HILL
1189 | HIM
1190 | HIMSELF
1191 | HINDMOST
1192 | HIS
1193 | HISTORY
1194 | HITS
1195 | HOISTED
1196 | HOLD
1197 | HOLDS
1198 | HOLY
1199 | HOMAGE
1200 | HOME
1201 | HONEST
1202 | HONEY
1203 | HONOUR
1204 | HONOURING
1205 | HOOKS
1206 | HOPE
1207 | HOPES
1208 | HORSE
1209 | HORSES
1210 | HOT
1211 | HOUNDS
1212 | HOUR
1213 | HOURS
1214 | HOUSE
1215 | HOUSEWIFE
1216 | HOW
1217 | HUE
1218 | HUGE
1219 | HUGELY
1220 | HUMBLE
1221 | HUMOUR
1222 | HUNDRED
1223 | HUNG
1224 | HUNGRY
1225 | HUNTED
1226 | HURT
1227 | HUSBAND
1228 | HUSBANDRY
1229 | HUSH
1230 | HYMN
1231 | HYMNS
1232 | IDLE
1233 | IDLY
1234 | IDOL
1235 | IDOLATRY
1236 | IF
1237 | IGNORANCE
1238 | ILL
1239 | ILLS
1240 | IMAGE
1241 | IMAGES
1242 | IMAGINARY
1243 | IMITATE
1244 | IMITATED
1245 | IMMORTAL
1246 | IMMURED
1247 | IMPAIR
1248 | IMPANNELLED
1249 | IMPART
1250 | IMPEDIMENTS
1251 | IMPERFECT
1252 | IMPIETY
1253 | IMPORT
1254 | IMPORTUNE
1255 | IMPREGNABLE
1256 | IMPRESSION
1257 | IMPRINT
1258 | IMPUTE
1259 | IN
1260 | INCAPABLE
1261 | INCERTAINTIES
1262 | INCERTAINTY
1263 | INCONSTANT
1264 | INCREASE
1265 | INCREASING
1266 | INDEED
1267 | INDIGEST
1268 | INDIRECTLY
1269 | INFECTION
1270 | INFERIOR
1271 | INFLAMING
1272 | INFLUENCE
1273 | INFORMER
1274 | INHABIT
1275 | INHEARSE
1276 | INHERIT
1277 | INHERITORS
1278 | INIQUITY
1279 | INJURIES
1280 | INJURIOUS
1281 | INJURY
1282 | INK
1283 | INSTANT
1284 | INSTINCT
1285 | INSUFFICIENCY
1286 | INSULTS
1287 | INTELLIGENCE
1288 | INTEND
1289 | INTENTS
1290 | INTERCHANGE
1291 | INTEREST
1292 | INTERIM
1293 | INTO
1294 | INVENT
1295 | INVENTION
1296 | INVITED
1297 | INVITING
1298 | INVOCATE
1299 | INVOKED
1300 | INWARD
1301 | IS
1302 | ISSUE
1303 | ISSUELESS
1304 | IT
1305 | ITSELF
1306 | JACKS
1307 | JADE
1308 | JAIL
1309 | JAWS
1310 | JEALOUS
1311 | JEALOUSY
1312 | JEWEL
1313 | JEWELS
1314 | JOIN
1315 | JOLLITY
1316 | JOURNEY
1317 | JOY
1318 | JUDGEMENT
1319 | JUDGMENT
1320 | JUMP
1321 | JUNES
1322 | JUST
1323 | JUSTIFY
1324 | KEEN
1325 | KEEP
1326 | KEEPS
1327 | KEPT
1328 | KEY
1329 | KILL
1330 | KILLS
1331 | KIND
1332 | KINDLING
1333 | KINDNESS
1334 | KINDS
1335 | KING
1336 | KINGDOM
1337 | KINGDOMS
1338 | KINGLY
1339 | KINGS
1340 | KISS
1341 | KISSING
1342 | KNEW
1343 | KNIFE
1344 | KNIGHTS
1345 | KNIT
1346 | KNOW
1347 | KNOWING
1348 | KNOWLEDGE
1349 | KNOWN
1350 | KNOWS
1351 | LABOURING
1352 | LACE
1353 | LACK
1354 | LACKED
1355 | LACKING
1356 | LADIES
1357 | LAID
1358 | LAMB
1359 | LAMBS
1360 | LAME
1361 | LAMENESS
1362 | LAND
1363 | LAP
1364 | LARGE
1365 | LARGESS
1366 | LARK
1367 | LASCIVIOUS
1368 | LAST
1369 | LASTING
1370 | LATCH
1371 | LATE
1372 | LAWFUL
1373 | LAWS
1374 | LAY
1375 | LAYS
1376 | LEAD
1377 | LEADS
1378 | LEAGUE
1379 | LEAN
1380 | LEAP
1381 | LEARN
1382 | LEARNING
1383 | LEASE
1384 | LEASES
1385 | LEAST
1386 | LEAVE
1387 | LEAVES
1388 | LEAVING
1389 | LEESE
1390 | LEFT
1391 | LEGACY
1392 | LEGIONS
1393 | LEISURE
1394 | LEND
1395 | LENDS
1396 | LENGTH
1397 | LENGTHS
1398 | LESS
1399 | LESSER
1400 | LESSON
1401 | LEST
1402 | LET
1403 | LETS
1404 | LEVEL
1405 | LIBERTY
1406 | LIE
1407 | LIES
1408 | LIFE
1409 | LIFTS
1410 | LIGHT
1411 | LIKE
1412 | LIKENESS
1413 | LIKER
1414 | LILIES
1415 | LILY
1416 | LIMBECKS
1417 | LIMBS
1418 | LIMIT
1419 | LIMITS
1420 | LIMPING
1421 | LINE
1422 | LINES
1423 | LINGER
1424 | LIP
1425 | LIPS
1426 | LIQUID
1427 | LIST
1428 | LITTLE
1429 | LIVE
1430 | LIVED
1431 | LIVELY
1432 | LIVERY
1433 | LIVES
1434 | LIVING
1435 | LO
1436 | LOAN
1437 | LOATHSOME
1438 | LOCKED
1439 | LOFTY
1440 | LONG
1441 | LONGER
1442 | LONGING
1443 | LOOK
1444 | LOOKED
1445 | LOOKING
1446 | LOOKS
1447 | LORD
1448 | LORDS
1449 | LOSE
1450 | LOSING
1451 | LOSS
1452 | LOSSES
1453 | LOST
1454 | LOUD
1455 | LOVE
1456 | LOVED
1457 | LOVELINESS
1458 | LOVELY
1459 | LOVER
1460 | LOVERS
1461 | LOVES
1462 | LOVING
1463 | LOW
1464 | LUCK
1465 | LUST
1466 | LUSTY
1467 | LYING
1468 | MAD
1469 | MADDING
1470 | MADE
1471 | MADNESS
1472 | MAID
1473 | MAIDEN
1474 | MAIN
1475 | MAINTAIN
1476 | MAJESTY
1477 | MAKE
1478 | MAKELESS
1479 | MAKES
1480 | MAKETH
1481 | MAKING
1482 | MALADIES
1483 | MAN
1484 | MANNER
1485 | MANNERS
1486 | MANSION
1487 | MANY
1488 | MAP
1489 | MAR
1490 | MARBLE
1491 | MARCH
1492 | MARIGOLD
1493 | MARJORAM
1494 | MARK
1495 | MARRIAGE
1496 | MARRIED
1497 | MARS
1498 | MARVEL
1499 | MASKED
1500 | MASONRY
1501 | MASTER
1502 | MATCHETH
1503 | MATTER
1504 | MATURITY
1505 | MAY
1506 | MAYST
1507 | ME
1508 | MEADOWS
1509 | MEANS
1510 | MEANT
1511 | MEASURE
1512 | MEASURED
1513 | MEDICINE
1514 | MEDITATION
1515 | MEET
1516 | MEETNESS
1517 | MELANCHOLY
1518 | MEMORIAL
1519 | MEMORY
1520 | MEN
1521 | MEND
1522 | MENDED
1523 | MERCY
1524 | MERIT
1525 | MERITS
1526 | MESSENGERS
1527 | METHINKS
1528 | METHODS
1529 | METRE
1530 | MIDDLE
1531 | MIGHT
1532 | MIGHTIER
1533 | MIGHTST
1534 | MILES
1535 | MILLIONS
1536 | MIND
1537 | MINDED
1538 | MINDS
1539 | MINE
1540 | MINION
1541 | MINUTES
1542 | MIRACLE
1543 | MISER
1544 | MISPRISION
1545 | MISTAKE
1546 | MISTAKING
1547 | MISTRESS
1548 | MISUSE
1549 | MOAN
1550 | MOCK
1551 | MODERN
1552 | MOIETY
1553 | MOMENT
1554 | MONSTERS
1555 | MONUMENT
1556 | MONUMENTS
1557 | MOODS
1558 | MOON
1559 | MORE
1560 | MORN
1561 | MORNING
1562 | MORROW
1563 | MORTAL
1564 | MORTALITY
1565 | MOST
1566 | MOTHER
1567 | MOTION
1568 | MOTLEY
1569 | MOUNTAIN
1570 | MOUNTED
1571 | MOURN
1572 | MOURNERS
1573 | MOURNFUL
1574 | MOURNING
1575 | MOUTHED
1576 | MOUTHS
1577 | MOVE
1578 | MOVING
1579 | MOW
1580 | MUCH
1581 | MUD
1582 | MURDEROUS
1583 | MUSE
1584 | MUSES
1585 | MUSIC
1586 | MUST
1587 | MUTE
1588 | MUTUAL
1589 | MY
1590 | MYSELF
1591 | NAKED
1592 | NAME
1593 | NAMING
1594 | NATIVITY
1595 | NATURE
1596 | NAY
1597 | NEAR
1598 | NEARLY
1599 | NECESSARY
1600 | NECK
1601 | NEED
1602 | NEEDING
1603 | NEEDS
1604 | NEEDY
1605 | NEGLECT
1606 | NEGLECTED
1607 | NEIGH
1608 | NEITHER
1609 | NERVES
1610 | NEVER
1611 | NEW
1612 | NEWER
1613 | NEWS
1614 | NEXT
1615 | NIGGARD
1616 | NIGGARDING
1617 | NIGHT
1618 | NIGHTLY
1619 | NIGHTS
1620 | NIMBLE
1621 | NINE
1622 | NO
1623 | NOBLER
1624 | NONE
1625 | NOON
1626 | NOR
1627 | NOT
1628 | NOTE
1629 | NOTED
1630 | NOTHING
1631 | NOUGHT
1632 | NOVEL
1633 | NOW
1634 | NUMBER
1635 | NUMBERS
1636 | NURSE
1637 | NURSED
1638 | NURSETH
1639 | NYMPHS
1640 | OATHS
1641 | OBJECT
1642 | OBJECTS
1643 | OBLATION
1644 | OBLIVION
1645 | OBLIVIOUS
1646 | OBSEQUIOUS
1647 | OCEAN
1648 | ODOUR
1649 | ODOURS
1650 | OF
1651 | OFF
1652 | OFFENCE
1653 | OFFENCES
1654 | OFFEND
1655 | OFFENDERS
1656 | OFFICE
1657 | OFFICES
1658 | OFT
1659 | OFTEN
1660 | OLD
1661 | OLDER
1662 | OLIVES
1663 | ON
1664 | ONCE
1665 | ONE
1666 | ONLY
1667 | ONSET
1668 | ONWARD
1669 | ONWARDS
1670 | OPEN
1671 | OPPRESSION
1672 | OR
1673 | ORDERING
1674 | ORIENT
1675 | ORNAMENT
1676 | ORNAMENTS
1677 | ORPHANS
1678 | OTHER
1679 | OTHERS
1680 | OUR
1681 | OUT
1682 | OUTBRAVES
1683 | OUTCAST
1684 | OUTGOING
1685 | OUTLIVE
1686 | OUTRIGHT
1687 | OUTWARD
1688 | OUTWORN
1689 | OVER
1690 | OVERTHROW
1691 | OVERTURN
1692 | OWE
1693 | OWES
1694 | OWN
1695 | OWNERS
1696 | PACE
1697 | PAGE
1698 | PAID
1699 | PAIN
1700 | PAINFUL
1701 | PAINTED
1702 | PAINTER
1703 | PAINTING
1704 | PALATE
1705 | PALE
1706 | PAPER
1707 | PAPERS
1708 | PARALLELS
1709 | PARDON
1710 | PART
1711 | PARTAKE
1712 | PARTIAL
1713 | PARTICULARS
1714 | PARTLY
1715 | PARTS
1716 | PARTY
1717 | PASS
1718 | PASSED
1719 | PASSION
1720 | PAST
1721 | PATENT
1722 | PATIENCE
1723 | PATIENT
1724 | PATTERN
1725 | PAWS
1726 | PAY
1727 | PAYING
1728 | PAYS
1729 | PEACE
1730 | PEARL
1731 | PEBBLED
1732 | PEEP
1733 | PEN
1734 | PENANCE
1735 | PENCIL
1736 | PENT
1737 | PENURY
1738 | PERCEIVE
1739 | PERFECT
1740 | PERFECTION
1741 | PERFORCE
1742 | PERFUMED
1743 | PERFUMES
1744 | PERHAPS
1745 | PERISH
1746 | PERMIT
1747 | PERPETUAL
1748 | PERSPECTIVE
1749 | PERSUADE
1750 | PERUSAL
1751 | PETTY
1752 | PHILOMEL
1753 | PHOENIX
1754 | PHRASE
1755 | PHYSIC
1756 | PHYSICIAN
1757 | PHYSICIANS
1758 | PICTURE
1759 | PIED
1760 | PILGRIMAGE
1761 | PINE
1762 | PIPE
1763 | PITCH
1764 | PITIED
1765 | PITIFUL
1766 | PITY
1767 | PITYING
1768 | PLACE
1769 | PLACED
1770 | PLAGUE
1771 | PLAGUES
1772 | PLAIN
1773 | PLANTS
1774 | PLAY
1775 | PLEA
1776 | PLEAD
1777 | PLEASANT
1778 | PLEASE
1779 | PLEASED
1780 | PLEASING
1781 | PLEASURE
1782 | PLEASURES
1783 | PLIGHT
1784 | PLODS
1785 | PLOT
1786 | PLUCK
1787 | PLUS
1788 | POESY
1789 | POET
1790 | POETS
1791 | POINT
1792 | POINTING
1793 | POINTS
1794 | POISON
1795 | POLICY
1796 | POLITIC
1797 | POMP
1798 | POOR
1799 | POORLY
1800 | POSSESSETH
1801 | POSSESSING
1802 | POSSESSION
1803 | POSTERITY
1804 | POSTING
1805 | POTIONS
1806 | POVERTY
1807 | POWER
1808 | POWERFUL
1809 | POWERS
1810 | PRAISE
1811 | PRAISED
1812 | PRAISES
1813 | PRAISING
1814 | PRAY
1815 | PRAYERS
1816 | PRECIOUS
1817 | PREDICT
1818 | PREFIGURING
1819 | PREPARE
1820 | PREPOSTEROUSLY
1821 | PRESAGE
1822 | PRESAGERS
1823 | PRESCRIPTIONS
1824 | PRESENCE
1825 | PRESENT
1826 | PRESENTETH
1827 | PRESENTS
1828 | PRESERVE
1829 | PRESS
1830 | PRESUME
1831 | PRETTY
1832 | PREVENT
1833 | PREY
1834 | PRIDE
1835 | PRIME
1836 | PRINCES
1837 | PRINT
1838 | PRISON
1839 | PRISONER
1840 | PRIVATE
1841 | PRIVILAGE
1842 | PRIVILEGE
1843 | PRIZE
1844 | PRIZING
1845 | PROCEED
1846 | PROCEEDS
1847 | PROCESS
1848 | PROCLAIMS
1849 | PROFANE
1850 | PROFIT
1851 | PROFITLESS
1852 | PROFOUND
1853 | PROGNOSTICATE
1854 | PROGRESS
1855 | PROMISE
1856 | PRONE
1857 | PROOF
1858 | PROPHECIES
1859 | PROPHETIC
1860 | PROUD
1861 | PROUDER
1862 | PROUDEST
1863 | PROUDLY
1864 | PROVE
1865 | PROVES
1866 | PROVIDE
1867 | PROVING
1868 | PROVOKE
1869 | PRY
1870 | PUBLIC
1871 | PUBLISH
1872 | PUPIL
1873 | PURE
1874 | PUREST
1875 | PURGE
1876 | PURGING
1877 | PURITY
1878 | PURPLE
1879 | PURPOSE
1880 | PURSUING
1881 | PURSUIT
1882 | PUT
1883 | PUTS
1884 | PYRAMIDS
1885 | QUALIFY
1886 | QUALITY
1887 | QUEEN
1888 | QUENCHED
1889 | QUEST
1890 | QUESTION
1891 | QUICK
1892 | QUICKER
1893 | QUICKLY
1894 | QUIET
1895 | QUIETUS
1896 | QUILL
1897 | QUITE
1898 | RACE
1899 | RACK
1900 | RAGE
1901 | RAGGED
1902 | RAIMENT
1903 | RAIN
1904 | RAINY
1905 | RANDOM
1906 | RANK
1907 | RANKS
1908 | RANSOM
1909 | RANSOMS
1910 | RARE
1911 | RARITIES
1912 | RATHER
1913 | RAVEN
1914 | RAZED
1915 | RE
1916 | READ
1917 | REAP
1918 | REARWARD
1919 | REASON
1920 | REASONS
1921 | REBEL
1922 | RECEIPT
1923 | RECEIVE
1924 | RECEIVES
1925 | RECEIVEST
1926 | RECEIVING
1927 | RECITE
1928 | RECKON
1929 | RECKONING
1930 | RECOMPENSE
1931 | RECORD
1932 | RECORDS
1933 | RECOUNTING
1934 | RED
1935 | REDEEM
1936 | REEKS
1937 | REELETH
1938 | REFINED
1939 | REFUSE
1940 | REFUSEST
1941 | REGION
1942 | REGISTER
1943 | REGISTERS
1944 | REHEARSE
1945 | REIGN
1946 | REIGNS
1947 | RELEASING
1948 | RELIEF
1949 | RELIGIOUS
1950 | REMAIN
1951 | REMAINS
1952 | REMEDY
1953 | REMEMBER
1954 | REMEMBERED
1955 | REMEMBRANCE
1956 | REMOTE
1957 | REMOVE
1958 | REMOVED
1959 | REMOVER
1960 | RENDER
1961 | RENEW
1962 | RENEWEST
1963 | RENT
1964 | RENTS
1965 | REPAIR
1966 | REPAY
1967 | REPENT
1968 | REPLETE
1969 | REPORT
1970 | REPOSE
1971 | REPROACH
1972 | REPROVING
1973 | REQUIRE
1974 | RESEMBLE
1975 | RESEMBLING
1976 | RESERVE
1977 | RESORT
1978 | RESPECT
1979 | RESPECTS
1980 | RESPOSE
1981 | REST
1982 | RESTFUL
1983 | RESTING
1984 | RESTORE
1985 | RESTY
1986 | RETENTION
1987 | RETURN
1988 | REVENGE
1989 | REVENUES
1990 | REVIEW
1991 | REVIEWEST
1992 | REVOLT
1993 | REVOLUTION
1994 | RHETORIC
1995 | RHYME
1996 | RHYMERS
1997 | RICH
1998 | RICHER
1999 | RICHES
2000 | RICHLY
2001 | RID
2002 | RIDE
2003 | RIDER
2004 | RIGHT
2005 | RIGHTLY
2006 | RIGHTS
2007 | RIGOUR
2008 | RIME
2009 | RIOT
2010 | RIPE
2011 | RIPER
2012 | RISE
2013 | RISING
2014 | RITE
2015 | ROBBERY
2016 | ROBBING
2017 | ROBE
2018 | ROBS
2019 | ROCKS
2020 | ROLLING
2021 | RONDURE
2022 | ROOF
2023 | ROOM
2024 | ROOT
2025 | ROSE
2026 | ROSES
2027 | ROSY
2028 | ROTTEN
2029 | ROUGH
2030 | RUDE
2031 | RUDELY
2032 | RUIN
2033 | RUINATE
2034 | RUINING
2035 | RUMINATE
2036 | RUN
2037 | RUNS
2038 | RUTH
2039 | SABLE
2040 | SACRED
2041 | SAD
2042 | SADLY
2043 | SAID
2044 | SAIL
2045 | SAINT
2046 | SAITH
2047 | SAKE
2048 | SALUTATION
2049 | SALVE
2050 | SALVING
2051 | SAME
2052 | SANG
2053 | SAP
2054 | SATIRE
2055 | SATURN
2056 | SAUCES
2057 | SAUCY
2058 | SAVAGE
2059 | SAVE
2060 | SAVOUR
2061 | SAW
2062 | SAY
2063 | SAYING
2064 | SAYS
2065 | SCANDAL
2066 | SCANTED
2067 | SCARCELY
2068 | SCARLET
2069 | SCOPE
2070 | SCORE
2071 | SCORN
2072 | SCYTHE
2073 | SEA
2074 | SEAL
2075 | SEALS
2076 | SEASONS
2077 | SEAT
2078 | SECOND
2079 | SECONDS
2080 | SECRET
2081 | SEE
2082 | SEEING
2083 | SEEK
2084 | SEEKING
2085 | SEEM
2086 | SEEMING
2087 | SEEMLY
2088 | SEEMS
2089 | SEEN
2090 | SEES
2091 | SEETING
2092 | SELDOM
2093 | SELF
2094 | SELL
2095 | SELLING
2096 | SEMBLANCE
2097 | SEND
2098 | SENSE
2099 | SENSES
2100 | SENSUAL
2101 | SEPARABLE
2102 | SEPARATION
2103 | SEPULCHRES
2104 | SEQUENT
2105 | SERVANT
2106 | SERVICE
2107 | SERVICES
2108 | SERVING
2109 | SESSIONS
2110 | SET
2111 | SETS
2112 | SETTLED
2113 | SEVERAL
2114 | SHADE
2115 | SHADOW
2116 | SHADOWS
2117 | SHADY
2118 | SHAKE
2119 | SHAKEN
2120 | SHALL
2121 | SHALLOWEST
2122 | SHALT
2123 | SHAME
2124 | SHAMED
2125 | SHAMEFULLY
2126 | SHAMES
2127 | SHAPE
2128 | SHAPES
2129 | SHARE
2130 | SHARP
2131 | SHARPENED
2132 | SHE
2133 | SHEAVES
2134 | SHEDS
2135 | SHIFTING
2136 | SHIFTS
2137 | SHINE
2138 | SHINES
2139 | SHOOK
2140 | SHOOT
2141 | SHOP
2142 | SHORE
2143 | SHORN
2144 | SHORT
2145 | SHOULD
2146 | SHOULDST
2147 | SHOW
2148 | SHOWERS
2149 | SHOWING
2150 | SHOWN
2151 | SHOWS
2152 | SHUN
2153 | SICK
2154 | SICKEN
2155 | SICKLY
2156 | SICKNESS
2157 | SIDE
2158 | SIDES
2159 | SIEGE
2160 | SIGH
2161 | SIGHS
2162 | SIGHT
2163 | SIGHTLESS
2164 | SIGNS
2165 | SILENCE
2166 | SILENT
2167 | SILVER
2168 | SILVERED
2169 | SIMPLE
2170 | SIMPLICITY
2171 | SIMPLY
2172 | SIN
2173 | SINCE
2174 | SINFUL
2175 | SING
2176 | SINGLE
2177 | SINGLENESS
2178 | SINGS
2179 | SINKS
2180 | SINS
2181 | SIRE
2182 | SIREN
2183 | SIT
2184 | SITS
2185 | SITUATION
2186 | SKILL
2187 | SKY
2188 | SLAIN
2189 | SLANDER
2190 | SLANDERERS
2191 | SLAVE
2192 | SLAVERY
2193 | SLAY
2194 | SLEEP
2195 | SLEEPING
2196 | SLEPT
2197 | SLIDE
2198 | SLIGHT
2199 | SLOW
2200 | SLUMBERS
2201 | SLUTTISH
2202 | SMALL
2203 | SMELL
2204 | SMELLS
2205 | SMILING
2206 | SMOKE
2207 | SMOTHER
2208 | SNOW
2209 | SNOWED
2210 | SO
2211 | SOBER
2212 | SOCIETY
2213 | SOFT
2214 | SOIL
2215 | SOLD
2216 | SOLE
2217 | SOLEMN
2218 | SOME
2219 | SOMETHING
2220 | SOMETIME
2221 | SOMETIMES
2222 | SON
2223 | SONG
2224 | SONGS
2225 | SOON
2226 | SOONER
2227 | SORROW
2228 | SORROWS
2229 | SORRY
2230 | SORT
2231 | SOUGHT
2232 | SOUL
2233 | SOULS
2234 | SOUND
2235 | SOUNDLESS
2236 | SOUNDS
2237 | SOUR
2238 | SOUREST
2239 | SOURLY
2240 | SOVEREIGN
2241 | SPACE
2242 | SPACIOUS
2243 | SPARKLING
2244 | SPEAK
2245 | SPEAKING
2246 | SPECIAL
2247 | SPEECHLESS
2248 | SPEED
2249 | SPEND
2250 | SPENDING
2251 | SPENDS
2252 | SPENT
2253 | SPHERES
2254 | SPIES
2255 | SPIRIT
2256 | SPIRITS
2257 | SPITE
2258 | SPITES
2259 | SPLENDOUR
2260 | SPOIL
2261 | SPOILS
2262 | SPORT
2263 | SPORTIVE
2264 | SPOT
2265 | SPREAD
2266 | SPRING
2267 | SPRINGS
2268 | SPUR
2269 | SPURRING
2270 | STAGE
2271 | STAIN
2272 | STAINETH
2273 | STAMP
2274 | STAND
2275 | STANDS
2276 | STAR
2277 | STARS
2278 | STARVED
2279 | STATE
2280 | STATUES
2281 | STATUTE
2282 | STAY
2283 | STAYS
2284 | STEAL
2285 | STEALING
2286 | STEALS
2287 | STEALTH
2288 | STEEL
2289 | STEEP
2290 | STEEPY
2291 | STERN
2292 | STEWARDS
2293 | STILL
2294 | STOLE
2295 | STONE
2296 | STONES
2297 | STOP
2298 | STOPPED
2299 | STOPS
2300 | STORE
2301 | STORES
2302 | STORM
2303 | STORMY
2304 | STORY
2305 | STOUT
2306 | STRAIGHT
2307 | STRAINED
2308 | STRAINS
2309 | STRANGE
2310 | STRANGELY
2311 | STRANGLE
2312 | STRAYING
2313 | STREAMS
2314 | STRENGTH
2315 | STRETCHED
2316 | STRIFE
2317 | STRIKES
2318 | STRING
2319 | STRIVE
2320 | STRIVING
2321 | STRONG
2322 | STRONGER
2323 | STRONGLY
2324 | STRUCK
2325 | STRUMPETED
2326 | STYLE
2327 | SUBJECT
2328 | SUBJECTS
2329 | SUBORNED
2330 | SUBSCRIBES
2331 | SUBSIST
2332 | SUBSTANCE
2333 | SUBSTANTIAL
2334 | SUBTLETIES
2335 | SUCCEEDING
2336 | SUCCESSION
2337 | SUCCESSIVE
2338 | SUCH
2339 | SUE
2340 | SUFFER
2341 | SUFFERANCE
2342 | SUFFERING
2343 | SUFFERS
2344 | SUGGEST
2345 | SUIT
2346 | SUITED
2347 | SULLEN
2348 | SULLIED
2349 | SUM
2350 | SUMMER
2351 | SUMMON
2352 | SUMS
2353 | SUN
2354 | SUNK
2355 | SUNKEN
2356 | SUNS
2357 | SUNSET
2358 | SUPPOSE
2359 | SUPPOSED
2360 | SUPPOSING
2361 | SUPPRESSED
2362 | SURE
2363 | SURETY
2364 | SURFEIT
2365 | SURLY
2366 | SURMISE
2367 | SURMOUNT
2368 | SURVEY
2369 | SURVIVE
2370 | SUSPECT
2371 | SWART
2372 | SWAY
2373 | SWEAR
2374 | SWEARING
2375 | SWEARS
2376 | SWEET
2377 | SWEETEST
2378 | SWEETLY
2379 | SWEETNESS
2380 | SWEETS
2381 | SWERVING
2382 | SWIFT
2383 | SWORD
2384 | SWORN
2385 | TABLE
2386 | TABLES
2387 | TAKE
2388 | TAKEN
2389 | TAKER
2390 | TAKES
2391 | TALL
2392 | TALLIES
2393 | TAME
2394 | TAN
2395 | TANNED
2396 | TASK
2397 | TASTE
2398 | TAUGHT
2399 | TEACH
2400 | TEACHEST
2401 | TEAR
2402 | TEARS
2403 | TEEMING
2404 | TEETH
2405 | TELL
2406 | TELLING
2407 | TELLS
2408 | TEMPERATE
2409 | TEMPESTS
2410 | TEMPTATION
2411 | TEMPTETH
2412 | TEMPTING
2413 | TEN
2414 | TENANTS
2415 | TEND
2416 | TENDER
2417 | TENTH
2418 | TENURE
2419 | TERM
2420 | TERMS
2421 | TESTY
2422 | THAN
2423 | THANK
2424 | THANKS
2425 | THAT
2426 | THE
2427 | THEE
2428 | THEFT
2429 | THEIR
2430 | THEIRS
2431 | THEM
2432 | THEMES
2433 | THEMSELVES
2434 | THEN
2435 | THENCE
2436 | THERE
2437 | THEREBY
2438 | THEREFORE
2439 | THEREIN
2440 | THEREOF
2441 | THESE
2442 | THEY
2443 | THIEF
2444 | THIEVISH
2445 | THINE
2446 | THING
2447 | THINGS
2448 | THINK
2449 | THINKING
2450 | THINKS
2451 | THINLY
2452 | THIRD
2453 | THIS
2454 | THITHER
2455 | THORNS
2456 | THOSE
2457 | THOU
2458 | THOUGH
2459 | THOUGHT
2460 | THOUGHTS
2461 | THOUSAND
2462 | THRALL
2463 | THRALLED
2464 | THREE
2465 | THREESCORE
2466 | THREW
2467 | THRICE
2468 | THRIFTLESS
2469 | THRIVE
2470 | THRIVERS
2471 | THRONED
2472 | THROUGH
2473 | THROW
2474 | THRUST
2475 | THRUSTS
2476 | THUNDER
2477 | THUS
2478 | THY
2479 | THYSELF
2480 | TICKLED
2481 | TIE
2482 | TIED
2483 | TILL
2484 | TILLAGE
2485 | TIME
2486 | TIMES
2487 | TINCTURE
2488 | TIRED
2489 | TIRES
2490 | TITLE
2491 | TITLES
2492 | TO
2493 | TOGETHER
2494 | TOIL
2495 | TOLD
2496 | TOMB
2497 | TOMBED
2498 | TOMBS
2499 | TONGUE
2500 | TONGUES
2501 | TOO
2502 | TOOK
2503 | TOP
2504 | TOPS
2505 | TORMENT
2506 | TORN
2507 | TORTURE
2508 | TOUCH
2509 | TOUCHES
2510 | TOWARD
2511 | TOWARDS
2512 | TOWERS
2513 | TRACT
2514 | TRAFFIC
2515 | TRANSFIX
2516 | TRANSGRESSION
2517 | TRANSLATE
2518 | TRANSLATED
2519 | TRANSPORT
2520 | TRAVAIL
2521 | TRAVEL
2522 | TRAVELS
2523 | TREADS
2524 | TREASON
2525 | TREASURE
2526 | TREES
2527 | TRENCHES
2528 | TRESPASS
2529 | TRESSES
2530 | TRIAL
2531 | TRIBES
2532 | TRIFLE
2533 | TRIFLES
2534 | TRIM
2535 | TRIPPING
2536 | TRIUMPH
2537 | TRIUMPHANT
2538 | TROPHIES
2539 | TROUBLE
2540 | TRUANT
2541 | TRUE
2542 | TRUEST
2543 | TRULY
2544 | TRUST
2545 | TRUTH
2546 | TRUTHS
2547 | TRY
2548 | TUNE
2549 | TUNED
2550 | TURN
2551 | TURNS
2552 | TWAIN
2553 | TWENTY
2554 | TWICE
2555 | TWILIGHT
2556 | TWIRE
2557 | TWO
2558 | TWOFOLD
2559 | TYRANNOUS
2560 | TYRANNY
2561 | TYRANT
2562 | TYRANTS
2563 | UGLY
2564 | UNBLESS
2565 | UNBRED
2566 | UNCERTAIN
2567 | UNDER
2568 | UNDIVIDED
2569 | UNFAIR
2570 | UNFOLDING
2571 | UNHAPPILY
2572 | UNIONS
2573 | UNIVERSE
2574 | UNJUST
2575 | UNKIND
2576 | UNKINDNESS
2577 | UNKNOWN
2578 | UNLEARNED
2579 | UNLESS
2580 | UNLETTERED
2581 | UNMOVED
2582 | UNPERFECT
2583 | UNPROVIDENT
2584 | UNRESPECTED
2585 | UNREST
2586 | UNSEEING
2587 | UNSEEN
2588 | UNSET
2589 | UNSTAINED
2590 | UNSWEPT
2591 | UNTAINTED
2592 | UNTHRIFT
2593 | UNTHRIFTS
2594 | UNTHRIFTY
2595 | UNTIL
2596 | UNTO
2597 | UNTOLD
2598 | UNTRUE
2599 | UNUSED
2600 | UNWORTHINESS
2601 | UP
2602 | UPHOLD
2603 | UPON
2604 | UPREAR
2605 | URGE
2606 | US
2607 | USE
2608 | USED
2609 | USER
2610 | USEST
2611 | USHERS
2612 | USURER
2613 | USURY
2614 | UTMOST
2615 | UTTERING
2616 | VACANT
2617 | VADE
2618 | VAINLY
2619 | VALLEY
2620 | VANISHED
2621 | VANISHING
2622 | VANTAGE
2623 | VARIATION
2624 | VARYING
2625 | VASSAL
2626 | VASSALAGE
2627 | VAUNT
2628 | VEIL
2629 | VEINS
2630 | VENGEFUL
2631 | VERDICT
2632 | VERMILION
2633 | VERSE
2634 | VERSES
2635 | VERY
2636 | VEX
2637 | VEXED
2638 | VIAL
2639 | VICE
2640 | VICES
2641 | VICTOR
2642 | VICTORIES
2643 | VICTORS
2644 | VIEW
2645 | VIEWEST
2646 | VILE
2647 | VILEST
2648 | VIOLET
2649 | VIRGIN
2650 | VIRTUE
2651 | VIRTUOUS
2652 | VISAGE
2653 | VISION
2654 | VOICE
2655 | VOICES
2656 | VOTARY
2657 | VOUCHSAFE
2658 | VOW
2659 | VOWING
2660 | VOWS
2661 | VULGAR
2662 | WAIL
2663 | WAILING
2664 | WAIT
2665 | WAITING
2666 | WAKE
2667 | WAKING
2668 | WALK
2669 | WALKS
2670 | WALLS
2671 | WANDERING
2672 | WANE
2673 | WANING
2674 | WANT
2675 | WANTING
2676 | WANTON
2677 | WANTONLY
2678 | WANTONNESS
2679 | WAR
2680 | WARD
2681 | WARDROBE
2682 | WARDS
2683 | WARM
2684 | WARNING
2685 | WARRANTISE
2686 | WARRIOR
2687 | WARY
2688 | WAS
2689 | WASTE
2690 | WASTED
2691 | WASTEFUL
2692 | WASTES
2693 | WATCH
2694 | WATCHING
2695 | WATCHMAN
2696 | WATER
2697 | WATERY
2698 | WAVES
2699 | WAY
2700 | WE
2701 | WEAK
2702 | WEAKENS
2703 | WEAKNESS
2704 | WEALTH
2705 | WEAR
2706 | WEARY
2707 | WEED
2708 | WEEDS
2709 | WEEKS
2710 | WEEP
2711 | WEIGH
2712 | WEIGHS
2713 | WEIGHT
2714 | WELCOME
2715 | WELFARE
2716 | WELL
2717 | WENT
2718 | WERE
2719 | WERT
2720 | WEST
2721 | WET
2722 | WHAT
2723 | WHATSOEVER
2724 | WHEN
2725 | WHENCE
2726 | WHERE
2727 | WHEREFORE
2728 | WHEREIN
2729 | WHEREOF
2730 | WHEREON
2731 | WHERETO
2732 | WHEREUPON
2733 | WHEREVER
2734 | WHEREWITH
2735 | WHETHER
2736 | WHICH
2737 | WHILE
2738 | WHILST
2739 | WHIT
2740 | WHITE
2741 | WHO
2742 | WHOEVER
2743 | WHOLE
2744 | WHOM
2745 | WHOSE
2746 | WHY
2747 | WIDE
2748 | WIDOW
2749 | WIFE
2750 | WIGHTS
2751 | WILD
2752 | WILFUL
2753 | WILFULLY
2754 | WILFULNESS
2755 | WILL
2756 | WILLING
2757 | WILLINGLY
2758 | WILLS
2759 | WILT
2760 | WIN
2761 | WIND
2762 | WINDOWS
2763 | WINDS
2764 | WINDY
2765 | WING
2766 | WINGED
2767 | WINK
2768 | WINTER
2769 | WINTERS
2770 | WIRES
2771 | WIRY
2772 | WISDOM
2773 | WISE
2774 | WISH
2775 | WISHED
2776 | WISHING
2777 | WIT
2778 | WITH
2779 | WITHAL
2780 | WITHERING
2781 | WITHIN
2782 | WITHOUT
2783 | WITNESS
2784 | WITS
2785 | WOE
2786 | WOEFUL
2787 | WOES
2788 | WOLF
2789 | WOMAN
2790 | WOMB
2791 | WOMBS
2792 | WON
2793 | WONDER
2794 | WONDERING
2795 | WONDROUS
2796 | WONT
2797 | WOO
2798 | WOOD
2799 | WOOING
2800 | WOOS
2801 | WORD
2802 | WORDS
2803 | WORK
2804 | WORKINGS
2805 | WORKS
2806 | WORLD
2807 | WORMS
2808 | WORSE
2809 | WORSER
2810 | WORSHIP
2811 | WORST
2812 | WORTH
2813 | WORTHIER
2814 | WORTHINESS
2815 | WORTHLESS
2816 | WORTHS
2817 | WORTHY
2818 | WOULD
2819 | WOULDST
2820 | WOUND
2821 | WOUNDED
2822 | WRACK
2823 | WRACKFUL
2824 | WRESTING
2825 | WRETCH
2826 | WRETCHED
2827 | WRINKLE
2828 | WRINKLES
2829 | WRIT
2830 | WRITE
2831 | WRITERS
2832 | WRITES
2833 | WRITTEN
2834 | WRONG
2835 | WRONGFULLY
2836 | WRONGS
2837 | WROUGHT
2838 | YE
2839 | YEA
2840 | YEAR
2841 | YEARS
2842 | YELLOW
2843 | YET
2844 | YIELD
2845 | YORE
2846 | YOU
2847 | YOUNG
2848 | YOUNGLY
2849 | YOUR
2850 | YOURS
2851 | YOURSELF
2852 | YOUTH
2853 | YOUTHFUL
2854 | ZEALOUS
2855 |
--------------------------------------------------------------------------------
/Unit3/sonnets/sonnets.py:
--------------------------------------------------------------------------------
1 | my_words = [elt.strip() for elt in open("sonnet_words.txt", "r").readlines()]
2 | word_list = [elt.strip() for elt in open("sowpods.txt", "r").readlines()]
3 |
4 | counter = 0
5 |
6 | for word in my_words:
7 | if word not in word_list:
8 | print(word)
9 | counter += 1
10 |
11 | print("Total new words: %d" % counter)
12 |
--------------------------------------------------------------------------------
/Unit3/video1.mkd:
--------------------------------------------------------------------------------
1 | # Review sheets for lists and dictionaries
2 |
3 | * [Lists](./lists.mkd)
4 | * [Dictionaries](./dictionaries.mkd)
5 |
6 | ---
7 |
8 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
9 | jesstess@mit.edu
.
10 |
--------------------------------------------------------------------------------
/Unit3/video2.mkd:
--------------------------------------------------------------------------------
1 | # Files for Unit 2
2 |
3 | Please either clone this repository and navigate to the `sonnets` directory, or
4 | download these files individually to a `sonnets` directory. We'll use them
5 | throughout Unit 2.
6 |
7 | * [sonnets.txt](./sonnets/sonnets.txt)
8 | * [sonnet_words.txt](./sonnets/sonnet_words.txt)
9 | * [sowpods.txt](./sonnets/sowpods.txt)
10 | * [sonnets.py](./sonnets/sonnets.py)
11 | * [extract_sonnet_words.py](./sonnets/extract_sonnet_words.py)
12 |
13 | ---
14 |
15 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
16 | jesstess@mit.edu
.
17 |
--------------------------------------------------------------------------------
/Unit4/jeopardy/category_clues.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | connection = sqlite3.connect("jeopardy.db")
4 | cursor = connection.cursor()
5 |
6 | cursor.execute("SELECT id, name FROM category ORDER BY RANDOM() LIMIT 1")
7 | results = cursor.fetchall()
8 | category_id, name = results[0]
9 | print(name)
10 |
11 |
12 | query = """SELECT text, answer, value FROM clue
13 | WHERE category=%s ORDER BY value""" % (category_id,)
14 | cursor.execute(query)
15 | results = cursor.fetchall()
16 |
17 | for clue in results:
18 | text, answer, value = clue
19 | print("[$%s]" % (value,))
20 | print("A: %s" % (text,))
21 | print("Q: What is '%s'" % (answer,))
22 | print("")
23 |
24 | connection.close()
25 |
--------------------------------------------------------------------------------
/Unit4/jeopardy/clues.py:
--------------------------------------------------------------------------------
1 | import sqlite3
2 |
3 | connection = sqlite3.connect('jeopardy.db')
4 | cursor = connection.cursor()
5 |
6 | cursor.execute("SELECT text, answer, value FROM clue LIMIT 10")
7 | results = cursor.fetchall()
8 |
9 | # TODO: process results
10 |
11 | connection.close()
12 |
--------------------------------------------------------------------------------
/Unit4/jeopardy/game_categories.py:
--------------------------------------------------------------------------------
1 | # Goal:
2 | # Select a random game and print all of the categories from that game.
3 |
4 | # SQL to get a random game:
5 | # SELECT game FROM category ORDER BY RANDOM() LIMIT 1
6 |
7 | # SQL to get the categories for a particular game:
8 | # """SELECT name, round FROM category
9 | # WHERE game=%d ORDER BY round""" % (game_id,)
10 |
11 | import sqlite3
12 |
13 | connection = sqlite3.connect('jeopardy.db')
14 | cursor = connection.cursor()
15 |
16 | # Get a random game.
17 | cursor.execute("SELECT game FROM category ORDER BY RANDOM() LIMIT 1")
18 | results = cursor.fetchall()
19 | game_id = results[0][0]
20 | print("Categories for game #%d:" % (game_id,))
21 |
22 | # Get the categories for that game.
23 | query = """SELECT name, round FROM category
24 | WHERE game=%d ORDER BY round""" % (game_id,)
25 | cursor.execute(query)
26 | results = cursor.fetchall()
27 |
28 | # TODO: process results.
29 |
30 | connection.close()
31 |
--------------------------------------------------------------------------------
/Unit4/video1.mkd:
--------------------------------------------------------------------------------
1 | # Files for Unit 4
2 |
3 | Please complete the following steps to set up some projects dependencies for this Unit.
4 |
5 | ## 1. Download the Jeopardy database and Python scripts
6 |
7 | Please either clone this repository and navigate to the `jeopardy` directory, or
8 | download these files individually to a `jeopardy` directory. We'll use them
9 | throughout Unit 4.
10 |
11 | * [jeopardy.dump](./jeopardy/jeopardy.dump)
12 | * [clues.py](./jeopardy/clues.py)
13 | * [game_categories.py](./jeopardy/game_categories.py)
14 | * [category_clues.py](./jeopardy/category_clues.py)
15 |
16 | ## 2. Install SQLite
17 |
18 | ### On Windows
19 |
20 | * Download the SQLite command line tools from
21 | http://www.sqlite.org/download.html, using the sqlite-tools
link
22 | in the "Precompiled Binaries For Windows" section. This will download a
23 | directory containing several executables, including sqlite3.exe
.
24 | * Copy sqlite3.exe
into your jeopardy
folder.
25 |
26 | ### On OSX
27 |
28 | * You already have SQLite installed and don't have to do anything!
29 |
30 | ### On Linux
31 |
32 | * Install the sqlite3
package through your package manager.
33 |
34 | ## 3. Create a SQLite database from the database dump
35 |
36 | The jeopardy
folder contains a file called
37 | jeopardy.dump
. This is a SQL database dump. We need to turn this
38 | database dump into a SQLite database.
39 |
40 | Now that you have SQLite installed, create a database from
41 | jeopardy.dump
by executing the following command at the terminal:
42 |
43 | sqlite3 jeopardy.db < jeopardy.dump44 | 45 | This creates a
sqlite
database called jeopardy.db
.
46 |
47 | ## 4. Test your setup
48 |
49 | At a terminal, start sqlite3
using the jeopardy.db
50 | database by running:
51 |
52 | sqlite3 jeopardy.db53 | 54 | That should start a
sqlite
prompt that looks like this:
55 |
56 | 57 | SQLite version 3.6.12 58 | Enter ".help" for instructions 59 | Enter SQL statements terminated with a ";" 60 | sqlite>61 | 62 | At the
sqlite
prompt, type .tables
and press
63 | enter. That should display a list of the tables in this database:
64 |
65 | sqlite> .tables 66 | category clue 67 | sqlite>68 | 69 | Quit
sqlite
by executing:
70 |
71 | sqlite> .quit72 | 73 | ## 5. Practice making SQL queries 74 | 75 | ### Look at the layout of the Jeopardy database 76 | 77 | Start sqlite with: 78 | 79 |
sqlite3 jeopardy.db80 | 81 | Then look at the tables in your database by running the following commands at 82 | the
sqlite
prompt:
83 |
84 | * .table, which will list the tables in the database
85 | * .schema category, which will show the organization of the
86 | category table, including the fields and the data types they store.
87 |
88 | It should look like this:
89 |
90 | sqlite> .schema category 91 | CREATE TABLE "category" ( 92 | id INTEGER PRIMARY KEY, 93 | name VARCHAR(255) NOT NULL, 94 | game INTEGER NOT NULL, 95 | boardPosition INTEGER 96 | );97 | 98 | This tells us that the
category
table has 4 fields:
99 | id
, name
, game
, and
100 | boardPosition
.
101 |
102 | ### Read more about SQL
103 |
104 | If you don't have prior experience with SQL, please read these short documents
105 | for an introduction:
106 |
107 | * [What is SQL?](http://www.w3schools.com/sql/sql_intro.asp)
108 | * [What is a database schema?](http://wiki.answers.com/Q/What_is_a_database_schema)
109 |
110 | Then, check your understanding:
111 |
112 | * What tables are in the database?
113 | * What is a schema?
114 | * What fields are in the category
table?
115 | * What fields are in the clue
table?
116 |
117 | ### Query the database with SELECT
118 |
119 | Try running the following queries from the sqlite
prompt:
120 |
121 | * SELECT * FROM category;
122 | * SELECT NAME FROM category;
123 | * SELECT * FROM clue;
124 | * SELECT text, answer, value FROM clue;
125 | * SELECT text, answer, value FROM clue LIMIT 10;
126 |
127 | Explore the category
and clue
tables with your own
128 | SELECT queries.
129 |
130 | Then, check your understanding:
131 |
132 | * What does *
mean in the above queries?
133 | * What does the LIMIT
SQL keyword do?
134 | * Does case matter when making SQL queries?
135 |
136 | ---
137 |
138 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
139 | jesstess@mit.edu
.
140 |
--------------------------------------------------------------------------------
/Unit5/plotting/basic_plot.py:
--------------------------------------------------------------------------------
1 | from matplotlib import pyplot
2 |
3 | pyplot.plot([0, 2, 4, 8, 16, 32], "o-")
4 |
5 | pyplot.ylabel("Value")
6 | pyplot.xlabel("Time")
7 | pyplot.title("Test plot")
8 |
9 | pyplot.show()
10 |
--------------------------------------------------------------------------------
/Unit5/plotting/constitution.py:
--------------------------------------------------------------------------------
1 | from matplotlib import pyplot
2 | import string
3 |
4 | data = open("mystery.txt", "r").read()
5 |
6 | # Create a dictionary with an entry for each letter in the
7 | # alphabet. The keys are letters and the values will be the counts of
8 | # the number of times a letter has been seen. For now, initialize all
9 | # the counts to 0.
10 | letter_counts = {}
11 | for char in string.ascii_lowercase:
12 | letter_counts[char] = 0
13 |
14 | # Go through each character in `data`, skipping characters that aren't
15 | # letters. For every letter, increment the count stored in
16 | # `letter_counts` for that letter.
17 | for char in data:
18 | char = char.lower()
19 | if char in string.ascii_lowercase:
20 | letter_counts[char] += 1
21 |
22 | # Create a bar chart for the letter frequencies.
23 |
24 | # dictionaries don't guarantee an order, so get the items out of the
25 | # dictionary and sort them alphabetically for plotting.
26 | frequencies = letter_counts.items()
27 | labels = []
28 | counts = []
29 | for letter, count in sorted(frequencies):
30 | labels.append(letter)
31 | counts.append(count)
32 |
33 | # `xlocations` is a list of numbers from 0 to the number of
34 | # frequencies we are plotting, in this case 26.
35 | xlocations = range(len(frequencies))
36 | # `width` is the width of a bar in the bar chart.
37 | width = 0.5
38 | # Calculate where along the x-axis the ticks for each bar should
39 | # go. We want ticks to be in the center of bars.
40 | pyplot.xticks([elt + width/2 for elt in xlocations], labels)
41 | # Draw the bars. `counts` is a list of the heights (frequencies) for
42 | # each bar (letter).
43 | pyplot.bar(xlocations, counts, width=width)
44 |
45 | pyplot.xlabel("Letter")
46 | pyplot.ylabel("Frequency")
47 | pyplot.title("Letter frequencies in the US Constitution")
48 |
49 | pyplot.show()
50 |
--------------------------------------------------------------------------------
/Unit5/plotting/constitution.txt:
--------------------------------------------------------------------------------
1 | We the People of the United States, in Order to form a more perfect Union,
2 | establish Justice, insure domestic Tranquility, provide for the common
3 | defence, promote the general Welfare, and secure the Blessings of Liberty to
4 | ourselves and our Posterity, do ordain and establish this Constitution for the
5 | United States of America.
6 |
7 | Article 1.
8 |
9 | Section 1
10 | All legislative Powers herein granted shall be vested in a Congress of the
11 | United States, which shall consist of a Senate and House of Representatives.
12 |
13 | Section 2
14 | The House of Representatives shall be composed of Members chosen every second
15 | Year by the People of the several States, and the Electors in each State shall
16 | have the Qualifications requisite for Electors of the most numerous Branch of
17 | the State Legislature.
18 |
19 | No Person shall be a Representative who shall not have attained to the Age of
20 | twenty five Years, and been seven Years a Citizen of the United States, and who
21 | shall not, when elected, be an Inhabitant of that State in which he shall be
22 | chosen.
23 |
24 | Representatives and direct Taxes shall be apportioned among the several States
25 | which may be included within this Union, according to their respective Numbers,
26 | which shall be determined by adding to the whole Number of free Persons,
27 | including those bound to Service for a Term of Years, and excluding Indians not
28 | taxed, three fifths of all other Persons.
29 |
30 | The actual Enumeration shall be made within three Years after the first Meeting
31 | of the Congress of the United States, and within every subsequent Term of ten
32 | Years, in such Manner as they shall by Law direct. The Number of
33 | Representatives shall not exceed one for every thirty Thousand, but each State
34 | shall have at Least one Representative; and until such enumeration shall be
35 | made, the State of New Hampshire shall be entitled to choose three,
36 | Massachusetts eight, Rhode Island and Providence Plantations one, Connecticut
37 | five, New York six, New Jersey four, Pennsylvania eight, Delaware one, Maryland
38 | six, Virginia ten, North Carolina five, South Carolina five and Georgia three.
39 |
40 | When vacancies happen in the Representation from any State, the Executive
41 | Authority thereof shall issue Writs of Election to fill such Vacancies.
42 |
43 | The House of Representatives shall choose their Speaker and other Officers; and
44 | shall have the sole Power of Impeachment.
45 |
46 | Section 3
47 | The Senate of the United States shall be composed of two Senators from each
48 | State, chosen by the Legislature thereof, for six Years; and each Senator shall
49 | have one Vote.
50 |
51 | Immediately after they shall be assembled in Consequence of the first Election,
52 | they shall be divided as equally as may be into three Classes. The Seats of the
53 | Senators of the first Class shall be vacated at the Expiration of the second
54 | Year, of the second Class at the Expiration of the fourth Year, and of the
55 | third Class at the Expiration of the sixth Year, so that one third may be
56 | chosen every second Year; and if Vacancies happen by Resignation, or otherwise,
57 | during the Recess of the Legislature of any State, the Executive thereof may
58 | make temporary Appointments until the next Meeting of the Legislature, which
59 | shall then fill such Vacancies.
60 |
61 | No person shall be a Senator who shall not have attained to the Age of thirty
62 | Years, and been nine Years a Citizen of the United States, and who shall not,
63 | when elected, be an Inhabitant of that State for which he shall be chosen.
64 |
65 | The Vice President of the United States shall be President of the Senate, but
66 | shall have no Vote, unless they be equally divided.
67 |
68 | The Senate shall choose their other Officers, and also a President pro tempore,
69 | in the absence of the Vice President, or when he shall exercise the Office of
70 | President of the United States.
71 |
72 | The Senate shall have the sole Power to try all Impeachments. When sitting for
73 | that Purpose, they shall be on Oath or Affirmation. When the President of the
74 | United States is tried, the Chief Justice shall preside: And no Person shall be
75 | convicted without the Concurrence of two thirds of the Members present.
76 |
77 | Judgment in Cases of Impeachment shall not extend further than to removal from
78 | Office, and disqualification to hold and enjoy any Office of honor, Trust or
79 | Profit under the United States: but the Party convicted shall nevertheless be
80 | liable and subject to Indictment, Trial, Judgment and Punishment, according to
81 | Law.
82 |
83 | Section 4
84 | The Times, Places and Manner of holding Elections for Senators and
85 | Representatives, shall be prescribed in each State by the Legislature thereof;
86 | but the Congress may at any time by Law make or alter such Regulations, except
87 | as to the Place of Choosing Senators.
88 |
89 | The Congress shall assemble at least once in every Year, and such Meeting shall
90 | be on the first Monday in December, unless they shall by Law appoint a
91 | different Day.
92 |
93 | Section 5
94 | Each House shall be the Judge of the Elections, Returns and Qualifications of
95 | its own Members, and a Majority of each shall constitute a Quorum to do
96 | Business; but a smaller number may adjourn from day to day, and may be
97 | authorized to compel the Attendance of absent Members, in such Manner, and
98 | under such Penalties as each House may provide.
99 |
100 | Each House may determine the Rules of its Proceedings, punish its Members for
101 | disorderly Behavior, and, with the Concurrence of two-thirds, expel a Member.
102 |
103 | Each House shall keep a Journal of its Proceedings, and from time to time
104 | publish the same, excepting such Parts as may in their Judgment require
105 | Secrecy; and the Yeas and Nays of the Members of either House on any question
106 | shall, at the Desire of one fifth of those Present, be entered on the Journal.
107 |
108 | Neither House, during the Session of Congress, shall, without the Consent of
109 | the other, adjourn for more than three days, nor to any other Place than that
110 | in which the two Houses shall be sitting.
111 |
112 | Section 6
113 | The Senators and Representatives shall receive a Compensation for their
114 | Services, to be ascertained by Law, and paid out of the Treasury of the United
115 | States. They shall in all Cases, except Treason, Felony and Breach of the
116 | Peace, be privileged from Arrest during their Attendance at the Session of
117 | their respective Houses, and in going to and returning from the same; and for
118 | any Speech or Debate in either House, they shall not be questioned in any other
119 | Place.
120 |
121 | No Senator or Representative shall, during the Time for which he was elected,
122 | be appointed to any civil Office under the Authority of the United States which
123 | shall have been created, or the Emoluments whereof shall have been increased
124 | during such time; and no Person holding any Office under the United States,
125 | shall be a Member of either House during his Continuance in Office.
126 |
127 |
128 | Section 7
129 | All bills for raising Revenue shall originate in the House of Representatives;
130 | but the Senate may propose or concur with Amendments as on other Bills.
131 |
132 | Every Bill which shall have passed the House of Representatives and the Senate,
133 | shall, before it become a Law, be presented to the President of the United
134 | States; If he approve he shall sign it, but if not he shall return it, with his
135 | Objections to that House in which it shall have originated, who shall enter the
136 | Objections at large on their Journal, and proceed to reconsider it. If after
137 | such Reconsideration two thirds of that House shall agree to pass the Bill, it
138 | shall be sent, together with the Objections, to the other House, by which it
139 | shall likewise be reconsidered, and if approved by two thirds of that House, it
140 | shall become a Law. But in all such Cases the Votes of both Houses shall be
141 | determined by Yeas and Nays, and the Names of the Persons voting for and
142 | against the Bill shall be entered on the Journal of each House respectively. If
143 | any Bill shall not be returned by the President within ten Days (Sundays
144 | excepted) after it shall have been presented to him, the Same shall be a Law,
145 | in like Manner as if he had signed it, unless the Congress by their Adjournment
146 | prevent its Return, in which Case it shall not be a Law.
147 |
148 | Every Order, Resolution, or Vote to which the Concurrence of the Senate and
149 | House of Representatives may be necessary (except on a question of Adjournment)
150 | shall be presented to the President of the United States; and before the Same
151 | shall take Effect, shall be approved by him, or being disapproved by him, shall
152 | be repassed by two thirds of the Senate and House of Representatives, according
153 | to the Rules and Limitations prescribed in the Case of a Bill.
154 |
155 |
156 | Section 8
157 | The Congress shall have Power To lay and collect Taxes, Duties, Imposts and
158 | Excises, to pay the Debts and provide for the common Defence and general
159 | Welfare of the United States; but all Duties, Imposts and Excises shall be
160 | uniform throughout the United States;
161 |
162 | To borrow money on the credit of the United States;
163 |
164 | To regulate Commerce with foreign Nations, and among the several States, and
165 | with the Indian Tribes;
166 |
167 | To establish an uniform Rule of Naturalization, and uniform Laws on the subject
168 | of Bankruptcies throughout the United States;
169 |
170 | To coin Money, regulate the Value thereof, and of foreign Coin, and fix the
171 | Standard of Weights and Measures;
172 |
173 | To provide for the Punishment of counterfeiting the Securities and current Coin
174 | of the United States;
175 |
176 | To establish Post Offices and Post Roads;
177 |
178 | To promote the Progress of Science and useful Arts, by securing for limited
179 | Times to Authors and Inventors the exclusive Right to their respective Writings
180 | and Discoveries;
181 |
182 | To constitute Tribunals inferior to the supreme Court;
183 |
184 | To define and punish Piracies and Felonies committed on the high Seas, and
185 | Offenses against the Law of Nations;
186 |
187 | To declare War, grant Letters of Marque and Reprisal, and make Rules concerning
188 | Captures on Land and Water;
189 |
190 | To raise and support Armies, but no Appropriation of Money to that Use shall be
191 | for a longer Term than two Years;
192 |
193 | To provide and maintain a Navy;
194 |
195 | To make Rules for the Government and Regulation of the land and naval Forces;
196 |
197 | To provide for calling forth the Militia to execute the Laws of the Union,
198 | suppress Insurrections and repel Invasions;
199 |
200 | To provide for organizing, arming, and disciplining, the Militia, and for
201 | governing such Part of them as may be employed in the Service of the United
202 | States, reserving to the States respectively, the Appointment of the Officers,
203 | and the Authority of training the Militia according to the discipline
204 | prescribed by Congress;
205 |
206 | To exercise exclusive Legislation in all Cases whatsoever, over such District
207 | (not exceeding ten Miles square) as may, by Cession of particular States, and
208 | the acceptance of Congress, become the Seat of the Government of the United
209 | States, and to exercise like Authority over all Places purchased by the Consent
210 | of the Legislature of the State in which the Same shall be, for the Erection of
211 | Forts, Magazines, Arsenals, dock-Yards, and other needful Buildings; And
212 |
213 | To make all Laws which shall be necessary and proper for carrying into
214 | Execution the foregoing Powers, and all other Powers vested by this
215 | Constitution in the Government of the United States, or in any Department or
216 | Officer thereof.
217 |
218 | Section 9
219 | The Migration or Importation of such Persons as any of the States now existing
220 | shall think proper to admit, shall not be prohibited by the Congress prior to
221 | the Year one thousand eight hundred and eight, but a tax or duty may be imposed
222 | on such Importation, not exceeding ten dollars for each Person.
223 |
224 | The privilege of the Writ of Habeas Corpus shall not be suspended, unless when
225 | in Cases of Rebellion or Invasion the public Safety may require it.
226 |
227 | No Bill of Attainder or ex post facto Law shall be passed.
228 |
229 | No capitation, or other direct, Tax shall be laid, unless in Proportion to the
230 | Census or Enumeration herein before directed to be taken.
231 |
232 | No Tax or Duty shall be laid on Articles exported from any State.
233 |
234 | No Preference shall be given by any Regulation of Commerce or Revenue to the
235 | Ports of one State over those of another: nor shall Vessels bound to, or from,
236 | one State, be obliged to enter, clear, or pay Duties in another.
237 |
238 | No Money shall be drawn from the Treasury, but in Consequence of Appropriations
239 | made by Law; and a regular Statement and Account of the Receipts and
240 | Expenditures of all public Money shall be published from time to time.
241 |
242 | No Title of Nobility shall be granted by the United States: And no Person
243 | holding any Office of Profit or Trust under them, shall, without the Consent of
244 | the Congress, accept of any present, Emolument, Office, or Title, of any kind
245 | whatever, from any King, Prince or foreign State.
246 |
247 | Section 10
248 | No State shall enter into any Treaty, Alliance, or Confederation; grant Letters
249 | of Marque and Reprisal; coin Money; emit Bills of Credit; make any Thing but
250 | gold and silver Coin a Tender in Payment of Debts; pass any Bill of Attainder,
251 | ex post facto Law, or Law impairing the Obligation of Contracts, or grant any
252 | Title of Nobility.
253 |
254 | No State shall, without the Consent of the Congress, lay any Imposts or Duties
255 | on Imports or Exports, except what may be absolutely necessary for executing
256 | its inspection Laws: and the net Produce of all Duties and Imposts, laid by
257 | any State on Imports or Exports, shall be for the Use of the Treasury of the
258 | United States; and all such Laws shall be subject to the Revision and Control
259 | of the Congress.
260 |
261 | No State shall, without the Consent of Congress, lay any duty of Tonnage, keep
262 | Troops, or Ships of War in time of Peace, enter into any Agreement or Compact
263 | with another State, or with a foreign Power, or engage in War, unless actually
264 | invaded, or in such imminent Danger as will not admit of delay.
265 |
266 | Article 2.
267 |
268 | Section 1
269 | The executive Power shall be vested in a President of the United States of
270 | America. He shall hold his Office during the Term of four Years, and, together
271 | with the Vice-President chosen for the same Term, be elected, as follows:
272 |
273 | Each State shall appoint, in such Manner as the Legislature thereof may direct,
274 | a Number of Electors, equal to the whole Number of Senators and Representatives
275 | to which the State may be entitled in the Congress: but no Senator or
276 | Representative, or Person holding an Office of Trust or Profit under the United
277 | States, shall be appointed an Elector.
278 |
279 | The Electors shall meet in their respective States, and vote by Ballot for two
280 | persons, of whom one at least shall not lie an Inhabitant of the same State
281 | with themselves. And they shall make a List of all the Persons voted for, and
282 | of the Number of Votes for each; which List they shall sign and certify, and
283 | transmit sealed to the Seat of the Government of the United States, directed to
284 | the President of the Senate. The President of the Senate shall, in the Presence
285 | of the Senate and House of Representatives, open all the Certificates, and the
286 | Votes shall then be counted. The Person having the greatest Number of Votes
287 | shall be the President, if such Number be a Majority of the whole Number of
288 | Electors appointed; and if there be more than one who have such Majority, and
289 | have an equal Number of Votes, then the House of Representatives shall
290 | immediately choose by Ballot one of them for President; and if no Person have a
291 | Majority, then from the five highest on the List the said House shall in like
292 | Manner choose the President. But in choosing the President, the Votes shall be
293 | taken by States, the Representation from each State having one Vote; a quorum
294 | for this Purpose shall consist of a Member or Members from two-thirds of the
295 | States, and a Majority of all the States shall be necessary to a Choice. In
296 | every Case, after the Choice of the President, the Person having the greatest
297 | Number of Votes of the Electors shall be the Vice President. But if there
298 | should remain two or more who have equal Votes, the Senate shall choose from
299 | them by Ballot the Vice-President.
300 |
301 | The Congress may determine the Time of choosing the Electors, and the Day on
302 | which they shall give their Votes; which Day shall be the same throughout the
303 | United States.
304 |
305 | No person except a natural born Citizen, or a Citizen of the United States, at
306 | the time of the Adoption of this Constitution, shall be eligible to the Office
307 | of President; neither shall any Person be eligible to that Office who shall not
308 | have attained to the Age of thirty-five Years, and been fourteen Years a
309 | Resident within the United States.
310 |
311 | In Case of the Removal of the President from Office, or of his Death,
312 | Resignation, or Inability to discharge the Powers and Duties of the said
313 | Office, the same shall devolve on the Vice President, and the Congress may by
314 | Law provide for the Case of Removal, Death, Resignation or Inability, both of
315 | the President and Vice President, declaring what Officer shall then act as
316 | President, and such Officer shall act accordingly, until the Disability be
317 | removed, or a President shall be elected.
318 |
319 | The President shall, at stated Times, receive for his Services, a Compensation,
320 | which shall neither be increased nor diminished during the Period for which he
321 | shall have been elected, and he shall not receive within that Period any other
322 | Emolument from the United States, or any of them.
323 |
324 | Before he enter on the Execution of his Office, he shall take the following
325 | Oath or Affirmation:
326 |
327 | "I do solemnly swear (or affirm) that I will faithfully execute the Office of
328 | President of the United States, and will to the best of my Ability, preserve,
329 | protect and defend the Constitution of the United States."
330 |
331 | Section 2
332 | The President shall be Commander in Chief of the Army and Navy of the United
333 | States, and of the Militia of the several States, when called into the actual
334 | Service of the United States; he may require the Opinion, in writing, of the
335 | principal Officer in each of the executive Departments, upon any subject
336 | relating to the Duties of their respective Offices, and he shall have Power to
337 | Grant Reprieves and Pardons for Offenses against the United States, except in
338 | Cases of Impeachment.
339 |
340 | He shall have Power, by and with the Advice and Consent of the Senate, to make
341 | Treaties, provided two thirds of the Senators present concur; and he shall
342 | nominate, and by and with the Advice and Consent of the Senate, shall appoint
343 | Ambassadors, other public Ministers and Consuls, Judges of the supreme Court,
344 | and all other Officers of the United States, whose Appointments are not herein
345 | otherwise provided for, and which shall be established by Law: but the Congress
346 | may by Law vest the Appointment of such inferior Officers, as they think
347 | proper, in the President alone, in the Courts of Law, or in the Heads of
348 | Departments.
349 |
350 | The President shall have Power to fill up all Vacancies that may happen during
351 | the Recess of the Senate, by granting Commissions which shall expire at the End
352 | of their next Session.
353 |
354 | Section 3
355 | He shall from time to time give to the Congress Information of the State of the
356 | Union, and recommend to their Consideration such Measures as he shall judge
357 | necessary and expedient; he may, on extraordinary Occasions, convene both
358 | Houses, or either of them, and in Case of Disagreement between them, with
359 | Respect to the Time of Adjournment, he may adjourn them to such Time as he
360 | shall think proper; he shall receive Ambassadors and other public Ministers; he
361 | shall take Care that the Laws be faithfully executed, and shall Commission all
362 | the Officers of the United States.
363 |
364 | Section 4
365 | The President, Vice President and all civil Officers of the United States,
366 | shall be removed from Office on Impeachment for, and Conviction of, Treason,
367 | Bribery, or other high Crimes and Misdemeanors.
368 |
369 | Article 3.
370 |
371 | Section 1
372 | The judicial Power of the United States, shall be vested in one supreme Court,
373 | and in such inferior Courts as the Congress may from time to time ordain and
374 | establish. The Judges, both of the supreme and inferior Courts, shall hold
375 | their Offices during good Behavior, and shall, at stated Times, receive for
376 | their Services a Compensation which shall not be diminished during their
377 | Continuance in Office.
378 |
379 | Section 2
380 | The judicial Power shall extend to all Cases, in Law and Equity, arising under
381 | this Constitution, the Laws of the United States, and Treaties made, or which
382 | shall be made, under their Authority; to all Cases affecting Ambassadors, other
383 | public Ministers and Consuls; to all Cases of admiralty and maritime
384 | Jurisdiction; to Controversies to which the United States shall be a Party; to
385 | Controversies between two or more States; between a State and Citizens of
386 | another State; between Citizens of different States; between Citizens of the
387 | same State claiming Lands under Grants of different States, and between a
388 | State, or the Citizens thereof, and foreign States, Citizens or Subjects.
389 |
390 | In all Cases affecting Ambassadors, other public Ministers and Consuls, and
391 | those in which a State shall be Party, the supreme Court shall have original
392 | Jurisdiction. In all the other Cases before mentioned, the supreme Court shall
393 | have appellate Jurisdiction, both as to Law and Fact, with such Exceptions, and
394 | under such Regulations as the Congress shall make.
395 |
396 | The Trial of all Crimes, except in Cases of Impeachment, shall be by Jury; and
397 | such Trial shall be held in the State where the said Crimes shall have been
398 | committed; but when not committed within any State, the Trial shall be at such
399 | Place or Places as the Congress may by Law have directed.
400 |
401 | Section 3
402 | Treason against the United States, shall consist only in levying War against
403 | them, or in adhering to their Enemies, giving them Aid and Comfort. No Person
404 | shall be convicted of Treason unless on the Testimony of two Witnesses to the
405 | same overt Act, or on Confession in open Court.
406 |
407 | The Congress shall have power to declare the Punishment of Treason, but no
408 | Attainder of Treason shall work Corruption of Blood, or Forfeiture except
409 | during the Life of the Person attainted.
410 |
411 | Article 4.
412 |
413 | Section 1
414 | Full Faith and Credit shall be given in each State to the public Acts, Records,
415 | and judicial Proceedings of every other State. And the Congress may by general
416 | Laws prescribe the Manner in which such Acts, Records and Proceedings shall be
417 | proved, and the Effect thereof.
418 |
419 | Section 2
420 | The Citizens of each State shall be entitled to all Privileges and Immunities
421 | of Citizens in the several States.
422 |
423 | A Person charged in any State with Treason, Felony, or other Crime, who shall
424 | flee from Justice, and be found in another State, shall on demand of the
425 | executive Authority of the State from which he fled, be delivered up, to be
426 | removed to the State having Jurisdiction of the Crime.
427 |
428 | No Person held to Service or Labour in one State, under the Laws thereof,
429 | escaping into another, shall, in Consequence of any Law or Regulation therein,
430 | be discharged from such Service or Labour, But shall be delivered up on Claim
431 | of the Party to whom such Service or Labour may be due.
432 |
433 | Section 3
434 | New States may be admitted by the Congress into this Union; but no new States
435 | shall be formed or erected within the Jurisdiction of any other State; nor any
436 | State be formed by the Junction of two or more States, or parts of States,
437 | without the Consent of the Legislatures of the States concerned as well as of
438 | the Congress.
439 |
440 | The Congress shall have Power to dispose of and make all needful Rules and
441 | Regulations respecting the Territory or other Property belonging to the United
442 | States; and nothing in this Constitution shall be so construed as to Prejudice
443 | any Claims of the United States, or of any particular State.
444 |
445 | Section 4
446 | The United States shall guarantee to every State in this Union a Republican
447 | Form of Government, and shall protect each of them against Invasion; and on
448 | Application of the Legislature, or of the Executive (when the Legislature
449 | cannot be convened) against domestic Violence.
450 |
451 | Article 5.
452 |
453 | The Congress, whenever two thirds of both Houses shall deem it necessary, shall
454 | propose Amendments to this Constitution, or, on the Application of the
455 | Legislatures of two thirds of the several States, shall call a Convention for
456 | proposing Amendments, which, in either Case, shall be valid to all Intents and
457 | Purposes, as part of this Constitution, when ratified by the Legislatures of
458 | three fourths of the several States, or by Conventions in three fourths
459 | thereof, as the one or the other Mode of Ratification may be proposed by the
460 | Congress; Provided that no Amendment which may be made prior to the Year One
461 | thousand eight hundred and eight shall in any Manner affect the first and
462 | fourth Clauses in the Ninth Section of the first Article; and that no State,
463 | without its Consent, shall be deprived of its equal Suffrage in the Senate.
464 |
465 | Article 6.
466 |
467 | All Debts contracted and Engagements entered into, before the Adoption of this
468 | Constitution, shall be as valid against the United States under this
469 | Constitution, as under the Confederation.
470 |
471 | This Constitution, and the Laws of the United States which shall be made in
472 | Pursuance thereof; and all Treaties made, or which shall be made, under the
473 | Authority of the United States, shall be the supreme Law of the Land; and the
474 | Judges in every State shall be bound thereby, any Thing in the Constitution or
475 | Laws of any State to the Contrary notwithstanding.
476 |
477 | The Senators and Representatives before mentioned, and the Members of the
478 | several State Legislatures, and all executive and judicial Officers, both of
479 | the United States and of the several States, shall be bound by Oath or
480 | Affirmation, to support this Constitution; but no religious Test shall ever be
481 | required as a Qualification to any Office or public Trust under the United
482 | States.
483 |
484 | Article 7.
485 |
486 | The Ratification of the Conventions of nine States, shall be sufficient for the
487 | Establishment of this Constitution between the States so ratifying the Same.
488 |
489 | Done in Convention by the Unanimous Consent of the States present the
490 | Seventeenth Day of September in the Year of our Lord one thousand seven hundred
491 | and Eighty seven and of the Independence of the United States of America the
492 | Twelfth. In Witness whereof We have hereunto subscribed our Names.
493 |
494 | George Washington - President and deputy from Virginia
495 |
496 | New Hampshire - John Langdon, Nicholas Gilman
497 |
498 | Massachusetts - Nathaniel Gorham, Rufus King
499 |
500 | Connecticut - William Samuel Johnson, Roger Sherman
501 |
502 | New York - Alexander Hamilton
503 |
504 | New Jersey - William Livingston, David Brearley, William Paterson, Jonathan
505 | Dayton
506 |
507 | Pennsylvania - Benjamin Franklin, Thomas Mifflin, Robert Morris, George Clymer,
508 | Thomas Fitzsimons, Jared Ingersoll, James Wilson, Gouvernour Morris
509 |
510 | Delaware - George Read, Gunning Bedford Jr., John Dickinson, Richard Bassett,
511 | Jacob Broom
512 |
513 | Maryland - James McHenry, Daniel of St Thomas Jenifer, Daniel Carroll
514 |
515 | Virginia - John Blair, James Madison Jr.
516 |
517 | North Carolina - William Blount, Richard Dobbs Spaight, Hugh Williamson
518 |
519 | South Carolina - John Rutledge, Charles Cotesworth Pinckney, Charles Pinckney,
520 | Pierce Butler
521 |
522 | Georgia - William Few, Abraham Baldwin
523 |
524 | Attest: William Jackson, Secretary
525 |
526 |
527 | Amendment 1
528 | Congress shall make no law respecting an establishment of religion, or
529 | prohibiting the free exercise thereof; or abridging the freedom of speech, or
530 | of the press; or the right of the people peaceably to assemble, and to petition
531 | the Government for a redress of grievances.
532 |
533 | Amendment 2
534 | A well regulated Militia, being necessary to the security of a free State, the
535 | right of the people to keep and bear Arms, shall not be infringed.
536 |
537 | Amendment 3
538 | No Soldier shall, in time of peace be quartered in any house, without the
539 | consent of the Owner, nor in time of war, but in a manner to be prescribed by
540 | law.
541 |
542 | Amendment 4
543 | The right of the people to be secure in their persons, houses, papers, and
544 | effects, against unreasonable searches and seizures, shall not be violated, and
545 | no Warrants shall issue, but upon probable cause, supported by Oath or
546 | affirmation, and particularly describing the place to be searched, and the
547 | persons or things to be seized.
548 |
549 | Amendment 5
550 | No person shall be held to answer for a capital, or otherwise infamous crime,
551 | unless on a presentment or indictment of a Grand Jury, except in cases arising
552 | in the land or naval forces, or in the Militia, when in actual service in time
553 | of War or public danger; nor shall any person be subject for the same offense
554 | to be twice put in jeopardy of life or limb; nor shall be compelled in any
555 | criminal case to be a witness against himself, nor be deprived of life,
556 | liberty, or property, without due process of law; nor shall private property be
557 | taken for public use, without just compensation.
558 |
559 | Amendment 6
560 | In all criminal prosecutions, the accused shall enjoy the right to a speedy and
561 | public trial, by an impartial jury of the State and district wherein the crime
562 | shall have been committed, which district shall have been previously
563 | ascertained by law, and to be informed of the nature and cause of the
564 | accusation; to be confronted with the witnesses against him; to have compulsory
565 | process for obtaining witnesses in his favor, and to have the Assistance of
566 | Counsel for his defence.
567 |
568 | Amendment 7
569 | In Suits at common law, where the value in controversy shall exceed twenty
570 | dollars, the right of trial by jury shall be preserved, and no fact tried by a
571 | jury, shall be otherwise re-examined in any Court of the United States, than
572 | according to the rules of the common law.
573 |
574 | Amendment 8
575 | Excessive bail shall not be required, nor excessive fines imposed, nor cruel
576 | and unusual punishments inflicted.
577 |
578 | Amendment 9
579 | The enumeration in the Constitution, of certain rights, shall not be construed
580 | to deny or disparage others retained by the people.
581 |
582 | Amendment 10
583 | The powers not delegated to the United States by the Constitution, nor
584 | prohibited by it to the States, are reserved to the States respectively, or to
585 | the people.
586 |
587 | Amendment 11
588 | The Judicial power of the United States shall not be construed to extend to any
589 | suit in law or equity, commenced or prosecuted against one of the United States
590 | by Citizens of another State, or by Citizens or Subjects of any Foreign State.
591 |
592 | Amendment 12
593 | The Electors shall meet in their respective states, and vote by ballot for
594 | President and Vice-President, one of whom, at least, shall not be an inhabitant
595 | of the same state with themselves; they shall name in their ballots the person
596 | voted for as President, and in distinct ballots the person voted for as
597 | Vice-President, and they shall make distinct lists of all persons voted for as
598 | President, and of all persons voted for as Vice-President and of the number of
599 | votes for each, which lists they shall sign and certify, and transmit sealed to
600 | the seat of the government of the United States, directed to the President of
601 | the Senate;
602 |
603 | The President of the Senate shall, in the presence of the Senate and House of
604 | Representatives, open all the certificates and the votes shall then be counted;
605 |
606 | The person having the greatest Number of votes for President, shall be the
607 | President, if such number be a majority of the whole number of Electors
608 | appointed; and if no person have such majority, then from the persons having
609 | the highest numbers not exceeding three on the list of those voted for as
610 | President, the House of Representatives shall choose immediately, by ballot,
611 | the President. But in choosing the President, the votes shall be taken by
612 | states, the representation from each state having one vote; a quorum for this
613 | purpose shall consist of a member or members from two-thirds of the states, and
614 | a majority of all the states shall be necessary to a choice. And if the House
615 | of Representatives shall not choose a President whenever the right of choice
616 | shall devolve upon them, before the fourth day of March next following, then
617 | the Vice-President shall act as President, as in the case of the death or other
618 | constitutional disability of the President.
619 |
620 | The person having the greatest number of votes as Vice-President, shall be the
621 | Vice-President, if such number be a majority of the whole number of Electors
622 | appointed, and if no person have a majority, then from the two highest numbers
623 | on the list, the Senate shall choose the Vice-President; a quorum for the
624 | purpose shall consist of two-thirds of the whole number of Senators, and a
625 | majority of the whole number shall be necessary to a choice. But no person
626 | constitutionally ineligible to the office of President shall be eligible to
627 | that of Vice-President of the United States.
628 |
629 | Amendment 13
630 | 1. Neither slavery nor involuntary servitude, except as a punishment for crime
631 | whereof the party shall have been duly convicted, shall exist within the United
632 | States, or any place subject to their jurisdiction.
633 |
634 | 2. Congress shall have power to enforce this article by appropriate
635 | legislation.
636 |
637 | Amendment 14
638 | 1. All persons born or naturalized in the United States, and subject to the
639 | jurisdiction thereof, are citizens of the United States and of the State
640 | wherein they reside. No State shall make or enforce any law which shall abridge
641 | the privileges or immunities of citizens of the United States; nor shall any
642 | State deprive any person of life, liberty, or property, without due process of
643 | law; nor deny to any person within its jurisdiction the equal protection of the
644 | laws.
645 |
646 | 2. Representatives shall be apportioned among the several States according to
647 | their respective numbers, counting the whole number of persons in each State,
648 | excluding Indians not taxed. But when the right to vote at any election for the
649 | choice of electors for President and Vice-President of the United States,
650 | Representatives in Congress, the Executive and Judicial officers of a State, or
651 | the members of the Legislature thereof, is denied to any of the male
652 | inhabitants of such State, being twenty-one years of age, and citizens of the
653 | United States, or in any way abridged, except for participation in rebellion,
654 | or other crime, the basis of representation therein shall be reduced in the
655 | proportion which the number of such male citizens shall bear to the whole
656 | number of male citizens twenty-one years of age in such State.
657 |
658 | 3. No person shall be a Senator or Representative in Congress, or elector of
659 | President and Vice-President, or hold any office, civil or military, under the
660 | United States, or under any State, who, having previously taken an oath, as a
661 | member of Congress, or as an officer of the United States, or as a member of
662 | any State legislature, or as an executive or judicial officer of any State, to
663 | support the Constitution of the United States, shall have engaged in
664 | insurrection or rebellion against the same, or given aid or comfort to the
665 | enemies thereof. But Congress may by a vote of two-thirds of each House, remove
666 | such disability.
667 |
668 | 4. The validity of the public debt of the United States, authorized by law,
669 | including debts incurred for payment of pensions and bounties for services in
670 | suppressing insurrection or rebellion, shall not be questioned. But neither the
671 | United States nor any State shall assume or pay any debt or obligation incurred
672 | in aid of insurrection or rebellion against the United States, or any claim for
673 | the loss or emancipation of any slave; but all such debts, obligations and
674 | claims shall be held illegal and void.
675 |
676 | 5. The Congress shall have power to enforce, by appropriate legislation, the
677 | provisions of this article.
678 |
679 | Amendment 15
680 | 1. The right of citizens of the United States to vote shall not be denied or
681 | abridged by the United States or by any State on account of race, color, or
682 | previous condition of servitude.
683 |
684 | 2. The Congress shall have power to enforce this article by appropriate
685 | legislation.
686 |
687 | Amendment 16
688 | The Congress shall have power to lay and collect taxes on incomes, from
689 | whatever source derived, without apportionment among the several States, and
690 | without regard to any census or enumeration.
691 |
692 | Amendment 17
693 | The Senate of the United States shall be composed of two Senators from each
694 | State, elected by the people thereof, for six years; and each Senator shall
695 | have one vote. The electors in each State shall have the qualifications
696 | requisite for electors of the most numerous branch of the State legislatures.
697 |
698 | When vacancies happen in the representation of any State in the Senate, the
699 | executive authority of such State shall issue writs of election to fill such
700 | vacancies: Provided, That the legislature of any State may empower the
701 | executive thereof to make temporary appointments until the people fill the
702 | vacancies by election as the legislature may direct.
703 |
704 | This amendment shall not be so construed as to affect the election or term of
705 | any Senator chosen before it becomes valid as part of the Constitution.
706 |
707 | Amendment 18
708 | 1. After one year from the ratification of this article the manufacture, sale,
709 | or transportation of intoxicating liquors within, the importation thereof into,
710 | or the exportation thereof from the United States and all territory subject to
711 | the jurisdiction thereof for beverage purposes is hereby prohibited.
712 |
713 | 2. The Congress and the several States shall have concurrent power to enforce
714 | this article by appropriate legislation.
715 |
716 | 3. This article shall be inoperative unless it shall have been ratified as an
717 | amendment to the Constitution by the legislatures of the several States, as
718 | provided in the Constitution, within seven years from the date of the
719 | submission hereof to the States by the Congress.
720 |
721 | Amendment 19
722 | The right of citizens of the United States to vote shall not be denied or
723 | abridged by the United States or by any State on account of sex.
724 |
725 | Congress shall have power to enforce this article by appropriate legislation.
726 |
727 | Amendment 20
728 | 1. The terms of the President and Vice President shall end at noon on the 20th
729 | day of January, and the terms of Senators and Representatives at noon on the 3d
730 | day of January, of the years in which such terms would have ended if this
731 | article had not been ratified; and the terms of their successors shall then
732 | begin.
733 |
734 | 2. The Congress shall assemble at least once in every year, and such meeting
735 | shall begin at noon on the 3d day of January, unless they shall by law appoint
736 | a different day.
737 |
738 | 3. If, at the time fixed for the beginning of the term of the President, the
739 | President elect shall have died, the Vice President elect shall become
740 | President. If a President shall not have been chosen before the time fixed for
741 | the beginning of his term, or if the President elect shall have failed to
742 | qualify, then the Vice President elect shall act as President until a President
743 | shall have qualified; and the Congress may by law provide for the case wherein
744 | neither a President elect nor a Vice President elect shall have qualified,
745 | declaring who shall then act as President, or the manner in which one who is to
746 | act shall be selected, and such person shall act accordingly until a President
747 | or Vice President shall have qualified.
748 |
749 | 4. The Congress may by law provide for the case of the death of any of the
750 | persons from whom the House of Representatives may choose a President whenever
751 | the right of choice shall have devolved upon them, and for the case of the
752 | death of any of the persons from whom the Senate may choose a Vice President
753 | whenever the right of choice shall have devolved upon them.
754 |
755 | 5. Sections 1 and 2 shall take effect on the 15th day of October following the
756 | ratification of this article.
757 |
758 | 6. This article shall be inoperative unless it shall have been ratified as an
759 | amendment to the Constitution by the legislatures of three-fourths of the
760 | several States within seven years from the date of its submission.
761 |
762 | Amendment 21
763 | 1. The eighteenth article of amendment to the Constitution of the United States
764 | is hereby repealed.
765 |
766 | 2. The transportation or importation into any State, Territory, or possession
767 | of the United States for delivery or use therein of intoxicating liquors, in
768 | violation of the laws thereof, is hereby prohibited.
769 |
770 | 3. The article shall be inoperative unless it shall have been ratified as an
771 | amendment to the Constitution by conventions in the several States, as provided
772 | in the Constitution, within seven years from the date of the submission hereof
773 | to the States by the Congress.
774 |
775 | Amendment 22
776 | 1. No person shall be elected to the office of the President more than twice,
777 | and no person who has held the office of President, or acted as President, for
778 | more than two years of a term to which some other person was elected President
779 | shall be elected to the office of the President more than once. But this
780 | Article shall not apply to any person holding the office of President, when this
781 | Article was proposed by the Congress, and shall not prevent any person who may
782 | be holding the office of President, or acting as President, during the term
783 | within which this Article becomes operative from holding the office of
784 | President or acting as President during the remainder of such term.
785 |
786 | 2. This article shall be inoperative unless it shall have been ratified as an
787 | amendment to the Constitution by the legislatures of three-fourths of the
788 | several States within seven years from the date of its submission to the States
789 | by the Congress.
790 |
791 | Amendment 23
792 | 1. The District constituting the seat of Government of the United States shall
793 | appoint in such manner as the Congress may direct: A number of electors of
794 | President and Vice President equal to the whole number of Senators and
795 | Representatives in Congress to which the District would be entitled if it were
796 | a State, but in no event more than the least populous State; they shall be in
797 | addition to those appointed by the States, but they shall be considered, for
798 | the purposes of the election of President and Vice President, to be electors
799 | appointed by a State; and they shall meet in the District and perform such
800 | duties as provided by the twelfth article of amendment.
801 |
802 | 2. The Congress shall have power to enforce this article by appropriate
803 | legislation.
804 |
805 | Amendment 24
806 | 1. The right of citizens of the United States to vote in any primary or other
807 | election for President or Vice President, for electors for President or
808 | Vice President, or for Senator or Representative in Congress, shall not be
809 | denied or abridged by the United States or any State by reason of failure to
810 | pay any poll tax or other tax.
811 |
812 | 2. The Congress shall have power to enforce this article by appropriate
813 | legislation.
814 |
815 | Amendment 25
816 | 1. In case of the removal of the President from office or of his death or
817 | resignation, the Vice President shall become President.
818 |
819 | 2. Whenever there is a vacancy in the office of the Vice President, the
820 | President shall nominate a Vice President who shall take office upon
821 | confirmation by a majority vote of both Houses of Congress.
822 |
823 | 3. Whenever the President transmits to the President pro tempore of the Senate
824 | and the Speaker of the House of Representatives his written declaration that he
825 | is unable to discharge the powers and duties of his office, and until he
826 | transmits to them a written declaration to the contrary, such powers and duties
827 | shall be discharged by the Vice President as Acting President.
828 |
829 | 4. Whenever the Vice President and a majority of either the principal officers
830 | of the executive departments or of such other body as Congress may by law
831 | provide, transmit to the President pro tempore of the Senate and the Speaker of
832 | the House of Representatives their written declaration that the President is
833 | unable to discharge the powers and duties of his office, the Vice President
834 | shall immediately assume the powers and duties of the office as Acting
835 | President.
836 |
837 | Thereafter, when the President transmits to the President pro tempore of the
838 | Senate and the Speaker of the House of Representatives his written declaration
839 | that no inability exists, he shall resume the powers and duties of his office
840 | unless the Vice President and a majority of either the principal officers of
841 | the executive department or of such other body as Congress may by law provide,
842 | transmit within four days to the President pro tempore of the Senate and the
843 | Speaker of the House of Representatives their written declaration that the
844 | President is unable to discharge the powers and duties of his office. Thereupon
845 | Congress shall decide the issue, assembling within forty eight hours for that
846 | purpose if not in session. If the Congress, within twenty one days after
847 | receipt of the latter written declaration, or, if Congress is not in session,
848 | within twenty one days after Congress is required to assemble, determines by
849 | two thirds vote of both Houses that the President is unable to discharge the
850 | powers and duties of his office, the Vice President shall continue to discharge
851 | the same as Acting President; otherwise, the President shall resume the powers
852 | and duties of his office.
853 |
854 | Amendment 26
855 | 1. The right of citizens of the United States, who are eighteen years of age or
856 | older, to vote shall not be denied or abridged by the United States or by any
857 | State on account of age.
858 |
859 | 2. The Congress shall have power to enforce this article by appropriate
860 | legislation.
861 |
862 | Amendment 27
863 | No law, varying the compensation for the services of the Senators and
864 | Representatives, shall take effect, until an election of Representatives shall
865 | have intervened.
866 |
--------------------------------------------------------------------------------
/Unit5/plotting/life_expectancies_usa.txt:
--------------------------------------------------------------------------------
1 | 1850,38.30,40.50
2 | 1890,42.50,44.46
3 | 1900,48.23,51.08
4 | 1909,50.23,53.62
5 | 1919,56.34,58.53
6 | 1929,59.12,62.67
7 | 1939,62.81,67.29
8 | 1949,66.31,72.03
9 | 1959,67.55,74.19
10 | 1969,67.94,75.49
11 | 1979,70.82,78.22
12 | 1990,72.7,79.40
13 | 2000,74.8,80.00
14 |
--------------------------------------------------------------------------------
/Unit5/plotting/mystery.txt:
--------------------------------------------------------------------------------
1 | If Youth, throughout all history, had had a champion to stand up for it; to show a doubting world that a child can think; and, possibly, do it practically, you wouldn't constantly run across folks today who claim that "a child don't know anything." A child's brain starts functioning at birth; and has, amongst its many infant convolutions, thousands of dormant atoms, into which God has put a mystic possibility for noticing an adult's act, and figuring out its purport.
2 |
3 | Up to about its primary school days a child thinks, naturally, only of play. But many a form of play contains disciplinary factor. "You can't do this," or "that puts out out," shows a child that it must think, practically, or fail. Now, if, throughout childhood, a brain has no opposition, it is plain that it will attain a position of "status quo," as with our ordinary animals. Man knows not why a cow, dog, or lion was not born with a brain on a par with ours; why such animals cannot add, subtract, or obtain from books and schooling, that paramount position which Man Holds today.
4 |
5 | But a human brain is not in that class. Constantly throbbing and pulsating, it rapidly forms opinions; attaining an ability of its own; a fact which is startlingly shown by an occasional child "prodigy" in music or school work. And as, with our dumb animals, a child's inability convincingly to impart its thoughts to us, should not class it as ignorant.
6 |
7 | Upon this basis I am going to show you how a bunch of bright young folks did find a champion; a man with boys and girls of his own; a man of so dominating and happy individuality that Youth is drawn to him as is a fly to a sugar bowl. It is a story about a small town. It is not a gossipy yarn; nor is it a dry, monotonous account, full of such customary "fill-ins" as "romantic moonlight casting murky shadows down a long, winding country road." Nor will it say anything about tinklings lulling distant folds; robins carolling at twilight, nor any "warm glow of lamplight" from a cabin window. No. It is an account of up-and-doing activity; a vivid portrayal of Youth as it is today; and a practical discarding of that worn-out notion that "a child don't know anything."
8 |
9 | Now, any author, from history's dawn, always had that most important aid to writing:—an ability to call upon any word in his dictionary in building up his story. That is, our strict laws as to word construction did not block his path. But in my story that mighty obstruction will constantly stand in my path; for many an important, common word I cannot adopt, owing to its orthography.
10 |
11 | I shall act as a sort of historian for this small town; associating with its inhabitants, and striving to acquaint you with its youths, in such a way that you can look, knowingly, upon any child, rich or poor; forward or "backward;" your won, or John Smith's, in your community. You will find many young minds aspiring to know how, and WHY such a thing is so. And if a child shows curiosity in that way, how ridiculous it is for to snap out:—
12 |
13 | "Oh! Don't ask about things too old for you!"
14 |
15 | Such a jolt to a young child's mind, craving instruction, is apt so to dull its avidity, as to hold it back in its school work. Try to look upon a child as a small, soft young body and a rapidly growing, constantly inquiring brain. It must grow to maturity slowly. Forcing a child through school by constant night study during hours in which it should run and play, can bring on insomnia; handicapping both brain and body.
16 |
17 | Now this small town in our story had grown in just that way:—slowly; in fact, much too slowly to stand on a par with many a thousand of its kind in this big, vigorous nation of ours. It was simply...
18 |
--------------------------------------------------------------------------------
/Unit5/plotting/world_population.py:
--------------------------------------------------------------------------------
1 | from matplotlib import pyplot
2 |
3 | data = open("world_population.txt", "r").readlines()
4 | dates = []
5 | populations = []
6 | for point in data:
7 | date, population = point.split()
8 | dates.append(date)
9 | populations.append(population)
10 |
11 | pyplot.plot(dates, populations, "o-")
12 | pyplot.ylabel("World population in millions")
13 | pyplot.xlabel("Year")
14 | pyplot.title("World population over time")
15 | pyplot.show()
16 |
--------------------------------------------------------------------------------
/Unit5/plotting/world_population.txt:
--------------------------------------------------------------------------------
1 | -10000 4
2 | -8000 5
3 | -7000 5
4 | -6000 5
5 | -5000 5
6 | -4000 7
7 | -3000 14
8 | -2000 27
9 | -1000 50
10 | -750 60
11 | -500 100
12 | -400 160
13 | -200 150
14 | 1 170
15 | 200 190
16 | 400 190
17 | 500 190
18 | 600 200
19 | 700 210
20 | 800 220
21 | 900 226
22 | 1000 310
23 | 1100 301
24 | 1200 360
25 | 1250 400
26 | 1300 360
27 | 1340 443
28 | 1400 350
29 | 1500 425
30 | 1600 545
31 | 1650 470
32 | 1700 600
33 | 1750 790
34 | 1800 980
35 | 1815 1000
36 | 1850 1260
37 | 1900 1650
38 | 1910 1750
39 | 1920 1860
40 | 1927 2000
41 | 1930 2070
42 | 1940 2300
43 | 1950 2400
44 | 1960 3020
45 | 1970 3700
46 | 1974 5000
47 | 1980 5000
48 | 1987 5000
49 | 1990 5000
50 | 1999 6000
51 | 2000 6070
52 | 2005 6500
53 | 2007 6576
54 | 2008 6900
55 |
--------------------------------------------------------------------------------
/Unit5/video1.mkd:
--------------------------------------------------------------------------------
1 | # Files for Unit 5
2 |
3 | Please complete the following steps to set up some projects dependencies for this Unit.
4 |
5 | ## 1. Install matplotlib
6 |
7 | Follow the instructions for your platform at http://matplotlib.org/users/installing.html.
8 |
9 | The exact steps will depend on your environment setup, but a common case is:
10 |
11 | * Windows: run pip3 install matplotlib
at a terminal prompt
12 | * OSX: run pip3 install matplotlib
at a terminal prompt
13 | * Linux: install python-matplotlib
through your package manager
14 |
15 | ## 2. Test your matplotlib installation
16 |
17 | At a Python prompt, execute:
18 |
19 | from matplotlib import pyplot20 | 21 | If that runs without error, you have installed
matplotlib
!
22 |
23 | ## 3. Download the source material and Python scripts
24 |
25 | Please either clone this repository and navigate to the `plotting` directory, or
26 | download these files individually to a `plotting` directory. We'll use them
27 | throughout Unit 5.
28 |
29 | * [basic_plot.py](./plotting/basic_plot.py)
30 | * [world_population.txt](./plotting/world_population.txt)
31 | * [world_population.py](./plotting/world_population.py)
32 | * [life_expectancies_usa.txt](./plotting/life_expectancies_usa.txt)
33 | * [constitution.txt](./plotting/constitution.txt)
34 | * [constitution.py](./plotting/constitution.py)
35 | * [mystery.txt](./plotting/mystery.txt)
36 |
37 | ---
38 |
39 | Questions? Please don't hesitate to reach out to the author (me, Jessica!) at:
40 | jesstess@mit.edu
.
41 |
--------------------------------------------------------------------------------