Question: What is the type of variable x for following code? import datetime d 1 = datetime.date.today ( ) d 2 = datetime.date ( 2 0

What is the type of variable x for following code?
import datetime
d1= datetime.date.today()
d2= datetime.date(2020,12,12)
x = d1-d2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!