SlideShare a Scribd company logo
8.20 LAB:
Word frequencies Write a program that reads a list of words. Then, the program outputs those
words and their frequencies (case insensitive).
Ex: If the input is: hey Hi Mark hi mark the output is: hey 1 Hi 2 Mark 2 hi 2 mark 2
Hint: Use lower() to set each word to lowercase before comparing.

More Related Content

More from melodypeterson2136

A cafe lets you order a deli sandwich your way- There are E1- six choi.docx
A cafe lets you order a deli sandwich your way- There are E1- six choi.docxA cafe lets you order a deli sandwich your way- There are E1- six choi.docx
A cafe lets you order a deli sandwich your way- There are E1- six choi.docxmelodypeterson2136
 
A B C D Chapter 17 Problem 04 Input Area- Aash Inventories Net fixed a.docx
A B C D Chapter 17 Problem 04 Input Area- Aash Inventories Net fixed a.docxA B C D Chapter 17 Problem 04 Input Area- Aash Inventories Net fixed a.docx
A B C D Chapter 17 Problem 04 Input Area- Aash Inventories Net fixed a.docxmelodypeterson2136
 
A 75 year old has a heart murmur with a whooshing sound before the dup.docx
A 75 year old has a heart murmur with a whooshing sound before the dup.docxA 75 year old has a heart murmur with a whooshing sound before the dup.docx
A 75 year old has a heart murmur with a whooshing sound before the dup.docxmelodypeterson2136
 
9- Identify a nursing diagnosis related to Mrs- Saunders's right-sided.docx
9- Identify a nursing diagnosis related to Mrs- Saunders's right-sided.docx9- Identify a nursing diagnosis related to Mrs- Saunders's right-sided.docx
9- Identify a nursing diagnosis related to Mrs- Saunders's right-sided.docxmelodypeterson2136
 
A 65 vear oid man presents to the hospital with a one week history of.docx
A 65 vear oid man presents to the hospital with a one week history of.docxA 65 vear oid man presents to the hospital with a one week history of.docx
A 65 vear oid man presents to the hospital with a one week history of.docxmelodypeterson2136
 
A 72 year old patient with a history of asthma has a positive tubercul.docx
A 72 year old patient with a history of asthma has a positive tubercul.docxA 72 year old patient with a history of asthma has a positive tubercul.docx
A 72 year old patient with a history of asthma has a positive tubercul.docxmelodypeterson2136
 
8- The segment polarity genes are unique among the other Drosophila se.docx
8- The segment polarity genes are unique among the other Drosophila se.docx8- The segment polarity genes are unique among the other Drosophila se.docx
8- The segment polarity genes are unique among the other Drosophila se.docxmelodypeterson2136
 
A 19-year-old college student is being seen for a primary herpes infec.docx
A 19-year-old college student is being seen for a primary herpes infec.docxA 19-year-old college student is being seen for a primary herpes infec.docx
A 19-year-old college student is being seen for a primary herpes infec.docxmelodypeterson2136
 
A 25 year old has a noticeable heart murmur- with a whooshing sound af.docx
A 25 year old has a noticeable heart murmur- with a whooshing sound af.docxA 25 year old has a noticeable heart murmur- with a whooshing sound af.docx
A 25 year old has a noticeable heart murmur- with a whooshing sound af.docxmelodypeterson2136
 
8- Which of the following is (are) true for a fixed-coupon corporate b.docx
8- Which of the following is (are) true for a fixed-coupon corporate b.docx8- Which of the following is (are) true for a fixed-coupon corporate b.docx
8- Which of the following is (are) true for a fixed-coupon corporate b.docxmelodypeterson2136
 
9- Describe the actions of the Renin-Angiotensin-Aldosterone System- I.docx
9- Describe the actions of the Renin-Angiotensin-Aldosterone System- I.docx9- Describe the actions of the Renin-Angiotensin-Aldosterone System- I.docx
9- Describe the actions of the Renin-Angiotensin-Aldosterone System- I.docxmelodypeterson2136
 
9- Identify TWO (2) team building activities a principal of an early c.docx
9- Identify TWO (2) team building activities a principal of an early c.docx9- Identify TWO (2) team building activities a principal of an early c.docx
9- Identify TWO (2) team building activities a principal of an early c.docxmelodypeterson2136
 
9) Graphically show a reduction in Supply 10) Graphically show a reduc.docx
9) Graphically show a reduction in Supply 10) Graphically show a reduc.docx9) Graphically show a reduction in Supply 10) Graphically show a reduc.docx
9) Graphically show a reduction in Supply 10) Graphically show a reduc.docxmelodypeterson2136
 
8- Which of the following is not characteristic of open-ended question.docx
8- Which of the following is not characteristic of open-ended question.docx8- Which of the following is not characteristic of open-ended question.docx
8- Which of the following is not characteristic of open-ended question.docxmelodypeterson2136
 
8- Let X be the random variable- P(X-X) is the Probability mass functi.docx
8- Let X be the random variable- P(X-X) is the Probability mass functi.docx8- Let X be the random variable- P(X-X) is the Probability mass functi.docx
8- Let X be the random variable- P(X-X) is the Probability mass functi.docxmelodypeterson2136
 
8- Consider the strategic-form game shown below- A) Assume that both p.docx
8- Consider the strategic-form game shown below- A) Assume that both p.docx8- Consider the strategic-form game shown below- A) Assume that both p.docx
8- Consider the strategic-form game shown below- A) Assume that both p.docxmelodypeterson2136
 
7- Brand equity is a value premium for a product with a recognizable n.docx
7- Brand equity is a value premium for a product with a recognizable n.docx7- Brand equity is a value premium for a product with a recognizable n.docx
7- Brand equity is a value premium for a product with a recognizable n.docxmelodypeterson2136
 
7- Based on the figure that you made in Question 6 describe how the ab.docx
7- Based on the figure that you made in Question 6 describe how the ab.docx7- Based on the figure that you made in Question 6 describe how the ab.docx
7- Based on the figure that you made in Question 6 describe how the ab.docxmelodypeterson2136
 
7) What cells are encountered after splenectomy (Removal of the spleen.docx
7) What cells are encountered after splenectomy (Removal of the spleen.docx7) What cells are encountered after splenectomy (Removal of the spleen.docx
7) What cells are encountered after splenectomy (Removal of the spleen.docxmelodypeterson2136
 

More from melodypeterson2136 (20)

A cafe lets you order a deli sandwich your way- There are E1- six choi.docx
A cafe lets you order a deli sandwich your way- There are E1- six choi.docxA cafe lets you order a deli sandwich your way- There are E1- six choi.docx
A cafe lets you order a deli sandwich your way- There are E1- six choi.docx
 
A B C G D H.docx
A B C G D H.docxA B C G D H.docx
A B C G D H.docx
 
A B C D Chapter 17 Problem 04 Input Area- Aash Inventories Net fixed a.docx
A B C D Chapter 17 Problem 04 Input Area- Aash Inventories Net fixed a.docxA B C D Chapter 17 Problem 04 Input Area- Aash Inventories Net fixed a.docx
A B C D Chapter 17 Problem 04 Input Area- Aash Inventories Net fixed a.docx
 
A 75 year old has a heart murmur with a whooshing sound before the dup.docx
A 75 year old has a heart murmur with a whooshing sound before the dup.docxA 75 year old has a heart murmur with a whooshing sound before the dup.docx
A 75 year old has a heart murmur with a whooshing sound before the dup.docx
 
9- Identify a nursing diagnosis related to Mrs- Saunders's right-sided.docx
9- Identify a nursing diagnosis related to Mrs- Saunders's right-sided.docx9- Identify a nursing diagnosis related to Mrs- Saunders's right-sided.docx
9- Identify a nursing diagnosis related to Mrs- Saunders's right-sided.docx
 
A 65 vear oid man presents to the hospital with a one week history of.docx
A 65 vear oid man presents to the hospital with a one week history of.docxA 65 vear oid man presents to the hospital with a one week history of.docx
A 65 vear oid man presents to the hospital with a one week history of.docx
 
A 72 year old patient with a history of asthma has a positive tubercul.docx
A 72 year old patient with a history of asthma has a positive tubercul.docxA 72 year old patient with a history of asthma has a positive tubercul.docx
A 72 year old patient with a history of asthma has a positive tubercul.docx
 
8- The segment polarity genes are unique among the other Drosophila se.docx
8- The segment polarity genes are unique among the other Drosophila se.docx8- The segment polarity genes are unique among the other Drosophila se.docx
8- The segment polarity genes are unique among the other Drosophila se.docx
 
A 19-year-old college student is being seen for a primary herpes infec.docx
A 19-year-old college student is being seen for a primary herpes infec.docxA 19-year-old college student is being seen for a primary herpes infec.docx
A 19-year-old college student is being seen for a primary herpes infec.docx
 
A 25 year old has a noticeable heart murmur- with a whooshing sound af.docx
A 25 year old has a noticeable heart murmur- with a whooshing sound af.docxA 25 year old has a noticeable heart murmur- with a whooshing sound af.docx
A 25 year old has a noticeable heart murmur- with a whooshing sound af.docx
 
8- Which of the following is (are) true for a fixed-coupon corporate b.docx
8- Which of the following is (are) true for a fixed-coupon corporate b.docx8- Which of the following is (are) true for a fixed-coupon corporate b.docx
8- Which of the following is (are) true for a fixed-coupon corporate b.docx
 
9- Describe the actions of the Renin-Angiotensin-Aldosterone System- I.docx
9- Describe the actions of the Renin-Angiotensin-Aldosterone System- I.docx9- Describe the actions of the Renin-Angiotensin-Aldosterone System- I.docx
9- Describe the actions of the Renin-Angiotensin-Aldosterone System- I.docx
 
9- Identify TWO (2) team building activities a principal of an early c.docx
9- Identify TWO (2) team building activities a principal of an early c.docx9- Identify TWO (2) team building activities a principal of an early c.docx
9- Identify TWO (2) team building activities a principal of an early c.docx
 
9) Graphically show a reduction in Supply 10) Graphically show a reduc.docx
9) Graphically show a reduction in Supply 10) Graphically show a reduc.docx9) Graphically show a reduction in Supply 10) Graphically show a reduc.docx
9) Graphically show a reduction in Supply 10) Graphically show a reduc.docx
 
8- Which of the following is not characteristic of open-ended question.docx
8- Which of the following is not characteristic of open-ended question.docx8- Which of the following is not characteristic of open-ended question.docx
8- Which of the following is not characteristic of open-ended question.docx
 
8- Let X be the random variable- P(X-X) is the Probability mass functi.docx
8- Let X be the random variable- P(X-X) is the Probability mass functi.docx8- Let X be the random variable- P(X-X) is the Probability mass functi.docx
8- Let X be the random variable- P(X-X) is the Probability mass functi.docx
 
8- Consider the strategic-form game shown below- A) Assume that both p.docx
8- Consider the strategic-form game shown below- A) Assume that both p.docx8- Consider the strategic-form game shown below- A) Assume that both p.docx
8- Consider the strategic-form game shown below- A) Assume that both p.docx
 
7- Brand equity is a value premium for a product with a recognizable n.docx
7- Brand equity is a value premium for a product with a recognizable n.docx7- Brand equity is a value premium for a product with a recognizable n.docx
7- Brand equity is a value premium for a product with a recognizable n.docx
 
7- Based on the figure that you made in Question 6 describe how the ab.docx
7- Based on the figure that you made in Question 6 describe how the ab.docx7- Based on the figure that you made in Question 6 describe how the ab.docx
7- Based on the figure that you made in Question 6 describe how the ab.docx
 
7) What cells are encountered after splenectomy (Removal of the spleen.docx
7) What cells are encountered after splenectomy (Removal of the spleen.docx7) What cells are encountered after splenectomy (Removal of the spleen.docx
7) What cells are encountered after splenectomy (Removal of the spleen.docx
 

Recently uploaded

50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...Nguyen Thanh Tu Collection
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxjmorse8
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online PresentationGDSCYCCE
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Abhinav Gaur Kaptaan
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxJheel Barad
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointELaRue0
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...sanghavirahi2
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticspragatimahajan3
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxricssacare
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersPedroFerreira53928
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17Celine George
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPCeline George
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxbennyroshan06
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptxmansk2
 

Recently uploaded (20)

50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 
Morse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptxMorse OER Some Benefits and Challenges.pptx
Morse OER Some Benefits and Challenges.pptx
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Open Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPointOpen Educational Resources Primer PowerPoint
Open Educational Resources Primer PowerPoint
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...The impact of social media on mental health and well-being has been a topic o...
The impact of social media on mental health and well-being has been a topic o...
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptxJose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
Jose-Rizal-and-Philippine-Nationalism-National-Symbol-2.pptx
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Basic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumersBasic phrases for greeting and assisting costumers
Basic phrases for greeting and assisting costumers
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 

8-20 LAB- Word frequencies Write a program that reads a list of words-.docx

  • 1. 8.20 LAB: Word frequencies Write a program that reads a list of words. Then, the program outputs those words and their frequencies (case insensitive). Ex: If the input is: hey Hi Mark hi mark the output is: hey 1 Hi 2 Mark 2 hi 2 mark 2 Hint: Use lower() to set each word to lowercase before comparing.