Help a friend

Report a typo

Your friend is a language teacher that has the my_dir directory with all kinds of files. Help him find all txt files which have a1, a2 or b1 in their names. Use the glob module for that and take a look at what your friend has written:

glob.glob('my_dir\\*[a-c]1*.txt')

There's a mistake in this search. Which files does it return?

Select one or more options from the list
___

Create a free account to access the full topic