Question: Challenge Task 2 of 3 Now create a function named date_string that takes a datetime and returns a string like May 20 using steftime.
Challenge Task 2 of 3 Now create a function named date_string that takes a datetime and returns a string like "May 20" using steftime. The format string is as %d", birthdays.py 1 Import datetime 2 3 birthdays t . Gummer: Try agant 10 ] datetime.datetime(2012, 4, 29), datetime.datetime (2006, 8, 9), datetime.datetime (1978, 5, 16). datetime.datetime(1981, 8, 15), datetime.datetime(2001, 7, 4), datetime.datetime (1999, 17, 30) 11 12 today datetime.datetime.today() 13 today datetime.datetime.today() 14 def is over 13(datetime) 15 16 return today-year 365 datetime.year 365 4745 Restart O Preview Get Help Recheck work
Step by Step Solution
There are 3 Steps involved in it
It seems you are supposed to create a function named datestring that formats a date as a humanreadab... View full answer
Get step-by-step solutions from verified subject matter experts
