print(d)
What will be the output of the following Python code?
import datetime
d=datetime.date(2017,06,18)
print(tday.month())
What will be the output of the following Python code if the system date is 18th August, 2016?
tday=datetime.date.today()
print(tday)
What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)?
print(tday.weekday())
print(tday.isoweekday())
What will be the output of the following Python code if the system date is 21st June, 2017 (Wednesday)?
print(till_bday)
Point out the error (if any) in the code shown below if the system date is 18th June, 2017?
bday=datetime.date(2017,9,18) till_bday=bday-tday
t_day=bday-tday
Which of the following will throw an error if used after the following Python code?
bday=datetime.date(2017,9,18)
print(tday+tdelta)
What will be the output of the following Python code if the system date is: 6/19/2017
tdelta=datetime.timedelta(days=10)