Computer Science, asked by lucky7622, 11 months ago

write a Python program to display the current date and time​

Answers

Answered by chirranjitghosh111
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 raunaq171
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