Question: Help! Python script You have a file quotes.txt containing quotes, one per line, on security. Write a function quote() that takes a piece of text

Help! Python script
You have a file quotes.txt containing quotes, one per line, on security. Write a function quote() that takes a piece of text (i.e., a string) as input and prints any quote that contains that piece of text.
I've got this error every time, what I did wrong??Thanks
 Help! Python script You have a file quotes.txt containing quotes, one

>>quote ('watch') Traceback (most recent call last) File "", line 1, in quote ('watch') File "c:/Users/Kitsch/Desktop/md.py", line 2, in quote with open 'quotes.txt') as fp: FileNotFoundError: [Errno 2] No such file or directory: 'quotes.txt

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!