Quick help for a python newby, please

Anssi Saari as at sci.fi
Wed Nov 23 10:18:23 EST 2016


jones.dayton at gmail.com writes:

> but how do I replace the "2008, 8, 18" and "2008, 9, 26" with *my* values?  I've tried several things (which I can't remember all of) but usually end up with an error like this:

Something like this?

today = date.today()
birthday = date(byear, bmonth, bday)
delta = today - birthday
print(delta.days)





More information about the Python-list mailing list