make a game of file sorter
Here is what the above code is Doing:
1. It’s making a list of all the files in the current directory.
2. It’s sorting them by name.
3. It’s printing them out in alphabetical order.
To make a game out of this, you could ask the user to guess the next file in the list. If they get it right, they get a point. The game could keep track of the score and end when the user has had enough.
To make it more challenging, you could randomize the order of the files before each round.