Yesterday, we improved our program by adding a new feature, the added feature to implement the added
feature, which allows the user to edit an existing.
To do.
We added a case edit statement so the user may add show or edit to dos and if they press edit we ask
the user to enter the number of the to do to add it.
And we convert that to the into an integer because the input function returns a string data type always.
So even if it's a number, that number comes as a string type.
So you need to convert it into a type which behaves like a number so you can make math operations to
that number, you can order it, you can add other numbers to that and so on.
So the types are important in programming, and then here we subtract one from that number.
So if the user entered five, for example, we want to convert it into four because list indexing starts
from zero.
So once we get the index, then we ask the user to enter the new to do and we add that new to due to
that position in the list.
So that gives us the existing to do with that.
Index and that will replace the existing to do.
So we end up with an updated list which contains the new To-Do.
And that's what we did here yesterday.
Let's see what we can do today to improve our program even further while you learn new core Python concepts.
So I'll talk to you the next videos.