Sail E0 Webinar
Question
What is the output of the code shown below if the system date is 18th August, 2016?tday=datetime.date.today()print(tday.month())
Options:
A .  August
B .  Aug
C .  08
D .  8
Answer: Option D


The code shown above prints the month number from the system date. Therefor the output will be 8 if the system date is 18th August, 2016.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers