Here's something taken out of my code to check if the value is greater than 0 and if it's a number:
while(1):
        n = input("Type a number of rolls to do, to try and get 3 of the same sides in a row.")
        if n.isdigit() and int(n) > 0 == True:
            n = int(n)
            break
        else:
            print("Select a proper integer.")
For some reason if you enter a value that should stop the loop like 10, it's seen as a wrong integer. Why is that?
 
     
    