Vidyalelo
Python · Q188

Module in Python

Programming · Python · question 188

Q188

Which of the following will throw an error if used after the following Python code? tday=datetime.date.today() bday=datetime.date(2017,9,18) t_day=bday-tday

A.
print(t_day.seconds)
B.
print(t_day.months)
Answer
C.
print(t_day.max)
D.
print(t_day.resolution)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board