from datetime import date d0 = date(2014, 5, 31)d1 = date(2014, 4, 20)delta = abs(d0 - d1)print delta.days
Standard input is empty
41
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!