Single Choice Not Set

QWhat does the following statements do?

from datetime import *
print(datetime.today().strftime('%y'))

ID: #3588 Python Module MCQ 259 views
Question Info
#3588Q ID
Not SetDifficulty
Python Module MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Displays the current year as 00 to 99
  • B Displays the current year as 0001 to 9999
  • C Displays the timezone name
  • D Displays the timezone offset from UTC as +HHMM or -HHMM
Correct Answer

Explanation

Displays the current year as 00 to 99

Share This Question

Challenge a friend or share with your study group.