I have an input (called names) and that input is split up into three parts (.split) and then the third (last) element is converted into an integer and placed into a list
i.e. for example names = "John Smith 3"
it is split up into three parts "John" "Smith" 3
and put into a list: list1 = ["John", "Smith", 3]
Now my question is if the third element is inputted as a string and cannot be converted into and integer ("John Smith Three"), how can I go about displaying an error and making the user re-input (names) and also how can I go about handling error if the user inputs "John Jacob Smith 3" (more than three elements).