4. The words5000.csv file contains 5000 english words. Complete the program in lab8_p4.py so that it asks the user to enter a word and determines whether the entered word is found in the file. Display a meaningful message to let the user know whether the word was found or not. The solution should not treat lowercase and uppercase letters as different characters and it should check what the user entered includes letter characters only (i.e., a,b,c,...,Z). Enter a word: red The word 'red' is one of the 5000 common English words Enter a word: Supercalifragilisticexpialidocious The word 'Supercalifragilisticexpialidocious' is not one of the 5000 common English words 3 ම Possible extension: Allow the user to search for more than one word by asking them a number and using that to drive the program execution. Save the results of this search in a file and display the name of the file so the user can check it for the results. Explore More: lab8_p1.py x lab8_p3.py x words5000.csv X scarlet.txt x lab8_p2.py x 1 # Problem 4 CONSOLE SHELL Check Answer Reset to Template Recent Submissions
4. The words5000.csv file contains 5000 english words. Complete the program in lab8_p4.py so that it asks the user to enter a word and determines whether the entered word is found in the file. Display a meaningful message to let the user know whether the word was found or not. The solution should not treat lowercase and uppercase letters as different characters and it should check what the user entered includes letter characters only (i.e., a,b,c,...,Z). Enter a word: red The word 'red' is one of the 5000 common English words Enter a word: Supercalifragilisticexpialidocious The word 'Supercalifragilisticexpialidocious' is not one of the 5000 common English words 3 ම Possible extension: Allow the user to search for more than one word by asking them a number and using that to drive the program execution. Save the results of this search in a file and display the name of the file so the user can check it for the results. Explore More: lab8_p1.py x lab8_p3.py x words5000.csv X scarlet.txt x lab8_p2.py x 1 # Problem 4 CONSOLE SHELL Check Answer Reset to Template Recent Submissions
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Having a hard time figuring out this Python code. Would really appreciate some help
![4. The words5000.csv file contains 5000 english words.
Complete the program in lab8_p4.py so that it asks the
user to enter a word and determines whether the entered
word is found in the file. Display a meaningful message to
let the user know whether the word was found or not. The
solution should not treat lowercase and uppercase letters
as different characters and it should check what the user
entered includes letter characters only (i.e., a,b,c,...,Z).
Enter a word: red
The word 'red' is one of the 5000 common English words
Enter a word: Supercalifragilisticexpialidocious
The word 'Supercalifragilisticexpialidocious' is not one of
the 5000 common English words
3 ම
Possible extension: Allow the user to search for more than
one word by asking them a number and using that to drive
the program execution. Save the results of this search in a
file and display the name of the file so the user can check it
for the results.
Explore More:
lab8_p1.py x
lab8_p3.py x words5000.csv X
scarlet.txt x
lab8_p2.py x
1 # Problem 4
CONSOLE
SHELL
Check Answer
Reset to Template
Recent Submissions](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fc158a850-76a9-4504-97b9-8593e0926539%2Fa7598e7a-89c9-4d80-a92f-dd19652e6c46%2F6agyiqm_processed.png&w=3840&q=75)
Transcribed Image Text:4. The words5000.csv file contains 5000 english words.
Complete the program in lab8_p4.py so that it asks the
user to enter a word and determines whether the entered
word is found in the file. Display a meaningful message to
let the user know whether the word was found or not. The
solution should not treat lowercase and uppercase letters
as different characters and it should check what the user
entered includes letter characters only (i.e., a,b,c,...,Z).
Enter a word: red
The word 'red' is one of the 5000 common English words
Enter a word: Supercalifragilisticexpialidocious
The word 'Supercalifragilisticexpialidocious' is not one of
the 5000 common English words
3 ම
Possible extension: Allow the user to search for more than
one word by asking them a number and using that to drive
the program execution. Save the results of this search in a
file and display the name of the file so the user can check it
for the results.
Explore More:
lab8_p1.py x
lab8_p3.py x words5000.csv X
scarlet.txt x
lab8_p2.py x
1 # Problem 4
CONSOLE
SHELL
Check Answer
Reset to Template
Recent Submissions
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education