def safe_input():
    while True:
        try:
            guess = int(input(prompt))
            return guess
        except ValueError:
            print("You must enter a valid value.")
Comparison function for graph edges.
dataset/ETHPy150Open aroberge/pyproj/guess_number/guess_2.py/safe_input--crossover with--dataset/ETHPy150Open enthought/traits/traits/adaptation/adaptation_manager.py/_by_weight_then_from_protocol_specificity