Programming Language › Python Module MCQ › Question #3578
Single Choice Not Set

QWhat does the following statements do?
from datetime import *
print(datetime.today().strftime('%H'))

ID: #3578 Python Module MCQ 209 views
Question Info
#3578Q ID
Not SetDifficulty
Python Module MCQTopic

Choose the Best Option

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

  • A Displays the minute number from 00 to 59 ✔ ✖
  • B Displays the hour number of 12-hour clock ✔ ✖
  • C Displays the hour number of 24-hour clock ✔ ✖
  • D Displays the day number of the year from 000 to 366 ✔ ✖
Correct Answer

Explanation

Displays the hour number of 24-hour clock

Share This Question

Challenge a friend or share with your study group.