(pkt)
return False
Check if the packet is an ACK
Check if the packet is an ACK
Check if the packet is an ACK
def is_okay(pkt):
    """Check if the packet is an ACK"""
    if int(pkt[0], 16) == 7:
        if set(pkt) == set(['07', '00', '00', '01',
                            '00', '00', '00', '02',
                            '00', '00', '00']):
            return True
    return False
def is_okay ( pkt ) : if int ( pkt [ 0 ] , 16 ) == 7 : if set ( pkt ) == set ( [ '07' , '00' , '00' , '01' , '00' , '00' , '00' , '02' , '00' , '00' , '00' ] ) : return True return False