Single Choice Not Set

QWhat does the following statements do?
from datetime import *
print(getattr(datetime.today(),'hour'))

ID: #3570 Python Module MCQ 274 views
Question Info
#3570Q ID
Not SetDifficulty
Python Module MCQTopic

Choose the Best Option

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

  • A Displays current date and time
  • B Displays a list of all the hours remaining till midnight
  • C Displays current hour of the day
  • D Displays the number of hours in a day
Correct Answer

Explanation

Displays current hour of the day

Share This Question

Challenge a friend or share with your study group.