i have to do a project outlined at this link:
http://pages.cpsc.ucalgary.ca/~schoc...07_CPSC_217_A2
im currently doing part 2, involving searching for information from a cat data bank and having an output of the relevent sections. i've made 5 if statements where if the data from the search key if found in the data base, it will append into a second list and finally it will print the second list with all matching criteria. this code works well, but i need to have an else clause that will print " information not found" if there are no matches. my current code is:
[code removed at posters request]
but there are many errors, it prints the else clause, then the list of matches, then the else clause again. i dont know how to format this code to make it only print the else clause if data is not found. if i remove the else statement, the program works fine. What is wrong with my current code and what can i do to fix it?