Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Assignment 2P

94 bytes added, 22:48, 7 November 2019
Test for operator overloading '+' and '-'
=== Test for operator overloading '+' and '-' ===
: <source lang="python">
>>> d1
2019-11-07
 
>>> d2
2019-11-14
 
>>> d1 - d2
-7
 
>>> d2 - d1
7
 
>>> d2 = Date(2019,2,28)
>>> d2
2019-02-28
1,760
edits