Yesterday we worked on the show case.
What we did exactly is we added some numbers in front of the to do items.
So when the user wants to show the two two items in the command line, they now get that number in front
of each to do.
So that makes the outputs more user friendly.
We implemented that by iterating over the to dos, using an enumerate function, and so we access the
index and the item from the to this list.
So Enumerate makes it possible to extract these two figures from a list.
And then we use an F string, which always starts with an F in front, followed by these double quotes.
Inside, you can enter normal characters such as a dash or other characters, but you can also enter.
Variables and even expressions such as index plus one.
So that expression will be replaced by its value.
And that variable also will be replaced by its value.
So we end up with one single string constructed by these elements.
And so we print that string then in the command line.
And that makes the showcase more user friendly.
Yesterday we also added a complete.
Case.
This serves the users to mark a to do as complete as done.
So for that we ask the user what is the number of the to do they want to complete.
And then we used a pop method, which is a list method.
So pop points to to do's and it removes the item with this index.
So we get the number from here.
And we subtract one to make it an index because list indexing starts from zero.
And so we.
We remove the tutu that has.
That index, and that's what we did yesterday.
A lot of interesting stuff coming also today.
So.
Let me show you that to you in the next video.
See you there.