How to delete files with specific patterns in python?
How to delete files with specific patterns in python? Question: I have a bunch of files in the directory web, I need to match the pattern and delete the appropriate files.The files are in the following order 1520_22.txt, 1530_22.txt, 1540_22.txt, new_pwd_v1_asia_1530_22.json, new_pwd_v1_eur_1540_22.json, new_pwd_v1_aus_1520_22.json Each json file has a corresponding text file identified by the number …