Suppose I have the following input:
prediction=input("Enter score: ")
The user should enter the score in the format "x-y", for example, 2-0 or 3-1 etc..
My problem is how to create a validation here for numbers. It obviously fails using value error because of the "-". So I`m trying to use isinstance but always getting error (never used it before). So anybody can help please????
Thanks.


