Executable Python Script - Oldest
Write an executable Python script called "oldest" which outputs the oldest files in the current directory, starting with the file modified furthest in the past and working towards the newer files. Your program should accept one command line argument which represents the number of files to list.
Here is an example:
> oldest 3
Assume there are nine files, one being the most recent and nine being the oldest. The output should be:
e
nine
eight
sevene
You must use these and only these import statements:
from os import listdir, stat
from sys import argv
Hint: The imports used are a hint.