Yesterday you learned how to use the try and accept block in Python.
Try and accept avoids the program from braking abruptly for the user with an error.
So instead of showing an error to the user, which is not recommended.
You give a new opportunity to the user to enter the correct commands.
So in our case, if the user enters something like edit.
Do that instead of edit one or edit three.
So if they enter, edit, do that, which is a wrong command to enter.
We perform these actions, so we tell the user that the command is not valid and then we continue the
loop.
We give the user a new opportunity.
So we asked the user to enter the command again.
And we check all the cases again freshly.
It was important to specify the name of the error here value error in this case.
So we saw that in the command line.
We got a value error.
Therefore, we specify that in here.
And that was what you learned yesterday.
Today, there's a lot of important things you need to learn.
So I'll see you in the next video.