Skip to content

Instantly share code, notes, and snippets.

@batemapf
Created September 26, 2019 01:12
Show Gist options
  • Save batemapf/2758cd3ba67d319cc3c9d1fa7b09d7b7 to your computer and use it in GitHub Desktop.
Save batemapf/2758cd3ba67d319cc3c9d1fa7b09d7b7 to your computer and use it in GitHub Desktop.

case_search.py

There is a body of caselaw around TSA claims, such as George v. Rehiel (TSA). Using the PDF of this case, write a program that:

  • takes an string from the user [1]
  • searches the George v. Rehiel PDF for the string
  • prints the number of times the string occurs

[1] For full credit, you only need to accept unigrams (single words). If your program accepts bigrams (two word phrases) and trigrams (three word phrases), you will receive ten (10) points of extra credit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment