write a Python program to display the current date and time
Answers
Answered by
2
Answer:import datetime
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Explanation:
Answered by
0
Answer:
Explanation:import datetime
now = datetime.datetime.now()
print ("Current date and time : ")
print (now.strftime("%Y-%m-%d %H:%M:%S"))
Similar questions