Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

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
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education