Question: Python! You're reading a book by an unfamiliar author and are curious about which country they might be from. You decide to write a program

Python!

Python! You're reading a book by an unfamiliar author and are curious

about which country they might be from. You decide to write a

You're reading a book by an unfamiliar author and are curious about which country they might be from. You decide to write a program to help you guess this based on the spelling of the words in the book. Write a program that reads in a word (e.g. colour or color) and checks if it occurs in the file book.txt, printing out was found in the book. or was not found in the book.. For example, given the book.txt file: book.txt He looked out from the top of the mountain . The colour of the sky was amazing - Reds, oranges and pinks faded into a hazy blue. then your program should work like this: Word to look for:colour colour was found in the book The provided input word will always be in lowercase, but your program should match in a case insensitive manner. For instance, given the following book.txt file: book.txt Hypothesize ? How was she going to forma hypothesis when she didn't even know what the rest of the data looked like ? then your program should work like this: Word to look for: hypothesize hypothesize was found in the book

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!