#!/usr/bin/env python # # Usage: dayofweek # # Example: dayofweek 2003 11 6 import sys from datetime import datetime if __name__ == "__main__": if len(sys.argv) != 4: print("Usage: dayofweek ") exit(1) else: print( datetime(int(sys.argv[1]), int(sys.argv[2]), int(sys.argv[3])).strftime( "%A" ) )