No one wins at Code Golf vs. This is more noise than signal
Looking at code. Came to a 20-line block of code that did exactly this.
sorted(Path.cwd().glob("some_pattern[1-9]*.*"), reverse=True)
Twenty lines. Seriously.
To be fair, 8 of the 20 lines were comments. 3 were blank. Which leaves 9 lines of code to perform the task of a …
more ...