Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Prepare project and personal reports

Answered: 1 week ago

Question

=+4 What are non-union workers representations?

Answered: 1 week ago