()
return in_range
Prompt the user for the LNB's input frequency range
Prompt the user for the LNB's input frequency range
Prompt the user for the LNB s input frequency range
def _ask_lnb_freq_range():
    """Prompt the user for the LNB's input frequency range"""
    in_range = []
    while (True):
        while (len(in_range) != 2):
            try:
                resp = input(
                    "Inform the two extreme frequencies (in MHz) of "
                    "your LNB's frequency range, separated by comma: ")
                in_range = [float(x) for x in resp.split(",")]
            except ValueError:
                continue

        if (in_range[1] < in_range[0]):
            in_range = []
            print("Please, provide the lowest frequency first, followed by "
                  "the highest.")
            continue

        if (in_range[0] < 3000 or in_range[1] < 3000):
            in_range = []
            print("Please, provide the frequencies in MHz.")
            continue

        break

    return in_range
def _ask_lnb_freq_range ( ) : in_range = [ ] while ( True ) : while ( len ( in_range ) != 2 ) : try : resp = input ( "Inform the two extreme frequencies (in MHz) of " "your LNB's frequency range, separated by comma: " ) in_range = [ float ( x ) for x in resp . split ( "," ) ] except ValueError : continue if ( in_range [ 1 ] < in_range [ 0 ] ) : in_range = [ ] print ( "Please, provide the lowest frequency first, followed by " "the highest." ) continue if ( in_range [ 0 ] < 3000 or in_range [ 1 ] < 3000 ) : in_range = [ ] print ( "Please, provide the frequencies in MHz." ) continue break return in_range