1import glob
2
3# path to search single character filename
4path = "sales/?.jpeg"
5for file in glob.glob(path):
6 print(file)
7
8# path to search three-character filename
9path = "sales/???.jpeg"
10for file in glob.glob(path):
11 print(file)
12
13# search file that starts with word 'cha' followed by exact two-character
14path = "sales/cha??.txt"
15for file in glob.glob(path):
16 print(file)
17
1import glob
2
3# path to search single character filename
4path = "sales/?.jpeg"
5for file in glob.glob(path):
6 print(file)
7
8# path to search three-character filename
9path = "sales/???.jpeg"
10for file in glob.glob(path):
11 print(file)
12
13# search file that starts with word 'cha' followed by exact two-character
14path = "sales/cha??.txt"
15for file in glob.glob(path):
16 print(file)
17