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

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

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

Recommended textbooks for you

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education