I want to print "Match Found" and the line that the match is in if the search is in a line in the file. Note - the match can be in more than one line and if so it should print every line the match is in. I have got this part working but i want to print "Match Not Found" once if the search isn't in the whole file. So far whatever I have tried either prints "Match Not Found" for every line the search isnt in or it prints "Match not Found" after printing the lines the search is in.

```
f = open("cars.txt", "r+")
search = input("What do you want to search for? ")
for line_split in f:
    if search in line_split:
        print ("You searched for %s." % search)
        print ("Match Found.")
        print (line_split)
        print ("--------------------")
else:
        print ("You searched for %s" % search)
        print ("Match Not Found.")
        print ("--------------------")
f.close

```