Skip to content

Instantly share code, notes, and snippets.

@afaqk9394
Created March 5, 2020 01:21
Show Gist options
  • Save afaqk9394/3ce546506387045a2d32b614650f152b to your computer and use it in GitHub Desktop.
Save afaqk9394/3ce546506387045a2d32b614650f152b to your computer and use it in GitHub Desktop.
--- pythoncode1.py
+++ pythoncode2.py
@@ -1,5 +1,3 @@
-from datetime import date
-
def diff_dates(date1, date2):
return abs(date2-date1).days
@@ -7,5 +5,4 @@
d1 = date(2013,1,1)
d2 = date(2013,9,13)
result1 = diff_dates(d2, d1)
- print '{} days between {} and {}'.format(result1, d1, d2)
- print ("You just got one step closer to passing the Cisco DevNet Associate Exam!")
+ print '{} days between {} and {}'.format(result1, d1, d2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment