useful modules : : am on february the leading zeros are little annoying you could combine strftime with the first way we learned to get nicer outputprint( strftime'{}% on % {'format( hour% day) am on february you can also create datetime object when doing soyou must specify the yearmonthand day the other attributes are optional here is an exampled datetime( datetime( you can compare datetime objects using the ==and !operators you can also do arithmetic on datetime objectsthough we won' cover it here in factthere is lot more you can do with dates and times another nice module is calendar which you can use to print out calendars and do more sophisticated calculations with dates working with files and directories the os module and the submodule os path contain functions for working with files and directories changing the directory when your program opens filethe file is assumed to be in the same directory as your program itself if notyou have to specify the directorylike belows open' :/users/heinold/desktop/file txt 'read(if you have lot of files that you need to readall in the same directoryyou can use os chdir to change the directory here is an exampleos chdir' :/users/heinold/desktop' open'file txt 'read(getting the current directory the function getcwd returns the path of current directory it will be the directory your program is in or the directory you changed it to with chdir getting the files in directory the function listdir returns list of the entries in directoryincluding all files and subdirectories if you just want the files and not the subdirectories or viceversathe os path module contains the functions isfile and isdir to tell if an entry is file or