Greatest Speeches in History

Randomly select one of the “35 Greatest Speeches in History” (https://www.artofmanliness.com/character/knowledge-of-men/the-35-greatest-speeches-in-history/) using the following snippet of Python code import random print(random.randint(1,36))

Next, copy-and-paste the entire section from the website (including the title) and use it as your text string for the following regular expression exercises. Turn in your regular expression Python code solutions in a single Jupyter notebook.

  1. Determine if the letter “q” (lowercase q) is in your string
  2. Determine if the substring “peace” (with a lowercase p) is in your string
  3. Determine if the word “peace” or “Peace” is in your string
  4. Determine which numeric digits (0-9) are in your string at least once
  5. Identify the first occurrence of the substring starting with the substring “the” and ending with the substring “end” in your string.
  6. Identify all three letter lowercase words in your string.
  7. Identify all words that start with a vowel in your string.
  8. Identify the title of the speech in your string.
  9. Identify the date and location of the speech in your string.
  10. Replace all occurrences of the word “the” (lowercase or uppecase) with the word “THE”.