Question: Python problem JE 1:52 27% OO Fido def command add (date, event details calendar) (str, str, dict) str Add event details to the list at
JE 1:52 27% OO Fido def command add (date, event details calendar) (str, str, dict) str Add event details to the list at calendar[date] Create date if it was not there date: A string date formatted as YYYY-MM-DD event details A string describing the event calendar: The calendar database return: empty string calendar command add 2017-02-28 Python class calendar) calendar 2017-02-28' Python class True command add 2017-03-11 "csCA08 test 2", calendar) calendar 2017-03-11 CSCA08 tests 2 2017-02-28 Python class J) True command add 2017-03-11 go out with friends after test calendar) calendar 2017-03-11' ['CSC A08 test go out with friends after test'] 2017-02 28 Python class' J) True YOUR CODE GOES HERE pass def command show (calendar): (dict) str Returns the list of events for calendar sorted in increasing date order as a string, see examples below for a sample formatting calendar: the database of events
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
