Project Description
Adding Events to the Timeline
All events for the timeline have been added to the list events
at the top of the program. Each event consists of its own list with the first item being the date (written as mm/dd/yyyy) and the second item being the event description.
You should research and add at least 2 more events to the list.
Once you’ve added the events to the list, use the add_event
function to add the event to the timeline.
Formatting the Timeline
Now that we have events added to our timeline, let’s start to format it because our events are on top of one another and impossible to read.
To start, add a parameter to the add_event
function that will determine if the event will be added above
or below
the centerline.
Now it’s time to format the event descriptions so each word is written on a separate line.
To do this, we’ll need to analyze the string of the event description. There are many different ways to achieve this but the enumerate
function can be very helpful!