Write a program to print difference in between today and given date
Topic: Write a program to print difference in between today and given date
Solution
import datetime dd = int(input("date: ")) mm = int(input("month: ")) yy = int(input("year: ")) a = datetime.date(yy,mm,dd) x = date.today() print(x-a)
List all Python Programs