Python Programming - Search for Word/Phrase/String in a Text File/Document

by matt392 in Circuits > Software

1547 Views, 13 Favorites, 0 Comments

Python Programming - Search for Word/Phrase/String in a Text File/Document

search-marketing.jpg

This Python program will allow the user to enter a word/phrase/string into the program and have that searched for in a text document. Please note that the document must be in the same folder as the Python program. In this case, it is set up to search for the complete works of Shakespeare.