so the user can continue entering numbers even if they make mistake and enter text instead of number - cats and dogsmake two filescats txt and dogs txt store at least three names of cats in the first file and three names of dogs in the second file write program that tries to read these files and print the contents of the file to the screen wrap your code in try-except block to catch the filenotfound errorand print friendly message if file is missing move one of the files to different location on your systemand make sure the code in the except block executes properly - silent cats and dogsmodify your except block in exercise - to fail silently if either file is missing - common wordsvisit project gutenberg (and find few texts you' like to analyze download the text files for these worksor copy the raw text from your browser into text file on your computer you can use the count(method to find out how many times word or phrase appears in string for examplethe following code counts the number of times 'rowappears in stringline "rowrowrow your boatline count('row' line lower(count('row' notice that converting the string to lowercase using lower(catches all appearances of the word you're looking forregardless of how it' formatted write program that reads the files you found at project gutenberg and determines how many times the word 'theappears in each text storing data many of your programs will ask users to input certain kinds of information you might allow users to store preferences in game or provide data for visualization whatever the focus of your program isyou'll store the information users provide in data structures such as lists and dictionaries when users close programyou'll almost always want to save the information they entered simple way to do this involves storing your data using the json module