Interview Questions

Python - Display current date/time

Use the following code to display current datatime in python.

import datetime
print(datetime.datetime.now())