File Information (Python)

This is a short code example using the function os.stat() to get some of the basic file information. Things like file size, times the file was created (Windows), last modified, and last accessed. The program uses a dictionary in an interesting way to store and display the information. The times are displayed in the 12 hour Windows file manager format (US), but you can easily change the formatting string to your local preferences.