Simple pathnames

Report a typo

Let's match pathnames to the files they will match in the glob.glob() method.

Match the items from left and right columns
glob.glob('my_dir\\*.txt')
glob.glob('my_dir\\?.*')
glob.glob('my_dir\\?.txt')
glob.glob('my_dir\\?')
Subdirectories with one character names.
Filenames that consist of one character.
.txt files with one character names.
All .txt files.
___

Create a free account to access the full topic