Let's match pathnames to the files they will match in the glob.glob() method.
Glob module
Simple pathnames
Report a typo
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. ___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.