Created
March 5, 2020 01:21
-
-
Save afaqk9394/3ce546506387045a2d32b614650f152b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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