You can get rid of the previous line of code.

E.g. `if response.lower() in ('', 'y', 'yes')`. Note that this example assumes that yes is the default value, since I included the empty string (user hits the enter key right away) as valid. I recommend adding yes a the default option in case there are many files, typing would get tedious. Don't forget to change '[y/n]' to '[Y/n]' in the prompt then.