Change into your
inclass directory.
[~]$ cd
[~]$ cd cs21/inclass/
If the
w08-search directory does not yet exist, create it using
mkdir
[inclass]$ mkdir w08-search
Copy the sample files for today from my directory using
cp
[inclass]$ cp ~adanner/public/cs21/w08-search/* w08-search/
[inclass]$ ls
w01-intro/ w02-numAndString/ w03-decisions/ w04-graphics/
w05-functions/ w06-loops/ w08-search/
[inclass]$ cd w08-search/
[w08-search]$ ls
search.py goodwords.py
[w08-search]$
Good Words
Open
goodwords.py in vim. In a separate window, change to the
w08-search directory so you can run the program using
python goodwords.py. This should be somewhat familiar except for the
if __name__ == "__main__": bit, so let's explain that
Search
Open
search.py in vim.