# importing os module import os # Command to execute # Using Windows OS command cmd = 'date' # Using os.system() method os.system(cmd)