(data, filtered_port)
Examines the port index from data and see if it matches the 
    filtered_port. If it matches, print the IP address.
Examines the port index from data and see if it matches the 
    filtered_port. If it matches, print the IP address.
Examines the port index from data and see if it matches the filtered_port . If it matches print the IP address .
def print_filtered_port(data, filtered_port):
    """Examines the port index from data and see if it matches the 
    filtered_port. If it matches, print the IP address.
    """
    for item in data:
        try:
            port = item[4]
        except IndexError as e:
            if args.debug:
                print(e)
            continue
        if port == filtered_port:
            print(item[0])
def print_filtered_port ( data , filtered_port ) : for item in data : try : port = item [ 4 ] except IndexError as e : if args . debug : print ( e ) continue if port == filtered_port : print ( item [ 0 ] )