I’m currently on the “Command Line Calendar” project, and I have a question about the code I showed in the picture (especially commands in line 40-42). Basically what shown in the picture is that the code prompts the user to input a “date” and “event”. If the “date” is of the wrong format, the code asks the user whether they want to try again.
And this is where I have a problem. If user input “Y”, the code will bring user to the beginning of the code and start over; if not, the while loop (not shown in the pic) is stopped. Is there a way to, when user inputs “Y”, instead of starting over from the very beginning, just start over from this elif statement?