Professional Documents
Culture Documents
CSC 108 - W11 - Worksheets
CSC 108 - W11 - Worksheets
For each method, if the docstring example is incomplete, complete it, and then implement the method body.
class Event:
"""A new calendar event."""
def __init__(self, start_time: int, end_time: int, event_name: str) -> None:
"""Initialize a new event that starts at start_time, ends at end_time,
and is named event_name.
import event
class Day:
"""A calendar day and its events."""
def __init__(self, day: int, month: str, year: int) -> None:
"""Initialize a day on the calendar with day, month and year,
and no events.
return result.strip
if __name__ == '__main__':