print(datetime.datetime.now().strftime(‘%x’)) Yes, the answer is correct. code example
Example 1: python current date
from datetime import date
today = date.today()
print("Today's date:", today)
Example 2: python print datetime
import datetime
print("Now:", datetime.datetime.now())