Which Of The Following Will Throw An Error If Used After The #842
Which of the following will throw an error if used after the following Python code?</p> <pre><code class="language-python">tday=datetime.date.today() bday=datetime.date(2017,9,18) t_day=bday-tday</code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs109 Python. It can also be found in gs gs109 Python Modules - Python Datetime Module - Quiz No.1.
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
print(t_day.seconds)
print(t_day.months)
print(t_day.max)
print(t_day.resolution)