def online_snippet_lookup(serial):
    if len(serial) == 11:
        snippet = serial[-3:]
    elif len(serial) == 12:
        snippet = serial[-4:]
    elif len(serial) < 5 < 2:
        snippet = serial
    else:
        return None
    try:
        prod_xml = requests.get('http://support-sp.apple.com/sp/product', params={'cc': snippet, 'lang': 'en_US'}).content
        prod_descr = ET.fromstring(prod_xml).find('configCode').text
    except:
        return none
    return prod_descr
dataset/ETHPy150Open cwolfram/inge/lib/getwarranty.py/online_snippet_lookup/swapped operands of `<`