Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Scenario Instructions You are a Music Education major who wants to study how lyrics in songs flow together. You are starting your studies by
Scenario Instructions You are a Music Education major who wants to study how lyrics in songs flow together. You are starting your studies by looking at how famous speeches are built. 1. Using sets I want you to calculate how many unique words there are in Dr. King's "I Have A Dream" speech. 2. Using sets I want you to calculate how many unique words there are in Dr. King's "Letter From the Birmingham City Jail" text. 3. Next, I'd like to know how many of the words in the "I have a dream speech" were also used in the "Letter From the Birmingham City Jail" text (count). 4. Now tell me what words that were used in the "I have a dream" speech were NOT used in the "Letter From the Birmingham City Jail" text (list). Code: lowerLine strippedLine = lowerLine.strip("., ") listLine = strippedLine.split() = line.lower() speechList.extend(listLine)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Python Load the I Have A Dream speech text and Letter From the Birmingham City Jail text with opendr...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started