Point Out The Error If Any In The Code Shown Below If The #840
Point out the error (if any) in the code shown below if the system date is 18th June, 2017?</p> <pre><code class="language-python">tday=datetime.date.today() bday=datetime.date(2017,9,18) till_bday=bday-tday print(till_bday)</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.
Point out the error (if any) in the code shown below if the system date is 18th June, 2017?
tday=datetime.date.today() bday=datetime.date(2017,9,18) till_bday=bday-tday print(till_bday)
3 months, 0:00:00
90 days, 0:00:00
3 months 2 days, 0:00:00
92 days, 0:00:00