def generate_valid_keys():
    """ create a list of valid keys """
    valid_keys = []
    for minimum, maximum in RANGES:
        for i in range(ord(minimum), ord(maximum) + 1):
            valid_keys.append(chr(i))
    return valid_keys
def generate_valid_keys ( ) : valid_keys = [ ] for minimum , maximum in RANGES : for i in range ( ord ( minimum ) , ord ( maximum ) + 1 ) : valid_keys . append ( chr ( i ) ) return valid_keys
create a list of valid keys