def main():
    parser = argparse.ArgumentParser(description="Shorten URL using the following services: bit.ly, j.mp, t.cn, is.gd, v.gd, tiny.cc.")
    parser.add_argument("url",
        help="Enter the URL to shorten here")
    parser.add_argument("-j", "--jmp",
        help="use j.mp to shorten url", action="store_true")
    parser.add_argument("-t", "--tcn",
        help="use t.cn to shorten url", action="store_true")
    parser.add_argument("-i", "--isgd",
        help="use is.gd to shorten url", action="store_true")
    parser.add_argument("-v", "--vgd",
        help="use v.gd to shorten url", action="store_true")
    parser.add_argument("-c", "--tinycc",
        help="use tiny.cc to shorten url", action="store_true")

    parser.add_argument("-V", "--version", action='version', version='%(prog)s 1.0')
    args = parser.parse_args()

    url = args.url

    if ((url in 'http') == False):
        url = 'http://'+url

    if args.jmp:
        service = api['jmp']
        output = json.loads(getLink(service,url))["data"]["url"]
    elif args.tcn:
        service = api['tcn']
        output = json.loads(getLink(service,url))["urls"][0]["url_short"]
    elif args.isgd:
        service = api['isgd']
        output = json.loads(getLink(service,url))["shorturl"]
    elif args.vgd:
        service = api['vgd']
        output = json.loads(getLink(service,url))["shorturl"]
    elif args.tinycc:
        service = api['tinycc']
        output = json.loads(getLink(service,url))["results"]["short_url"]
    else:
        service = api['bitly']
        output = json.loads(getLink(service,url))["data"]["url"]

    if (output != ''):
        print output
    else:
        print 'Try again!'
dataset/ETHPy150Open ishu3101/shortn/shortn.py/main/swapped operands of `in`