Challenge 1
List the CSV pathnames directly under the chosen root, sorted by name.
import glob
from pathlib import Path
from tempfile import TemporaryDirectory
with TemporaryDirectory() as temporary:
root = Path(temporary)
(root / "one.csv").touch()
(root / "two.txt").touch()
matches = sorted(glob.glob()
assert matches == ["one.csv"]
print(matches)
Press Ctrl⌘Enter to check your answer