SHARE
TWEET

Untitled

a guest Oct 13th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import datetime
  2.  
  3. def inputDate():
  4.     date_entry = input('Enter a date in YYYY-MM-DD format')
  5.     year, month, day = map(int, date_entry.split('-'))
  6.     date1 = datetime.date(year, month, day)
  7.     return date1
  8.  
  9. zm1 = inputDate()
  10. zm2 = inputDate()
  11.  
  12. print(zm1-zm2)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top