ICMP Ping/ICMPPing.py
def ping_statistics(list):
    """Find the minimum, maximum and average latency.

    Args:
        :param list: the list of delay time where packet is received successfully.

    Returns:
        :return: minimum, maximum and average latency (integer type).
    """
    max_delay = list[0]
    mini_delay = list[0]
    sum = 0
    for item in list:
        if item >= max_delay:
            max_delay = item
        elif item <= mini_delay:
            mini_delay = item
        sum += item
    avg_delay = int(sum / (len(list)))
    return mini_delay, max_delay, avg_delay
Find the minimum, maximum and average latency.

    Args:
        :param list: the list of delay time where packet is received successfully.

    Returns:
        :return: minimum, maximum and average latency (integer type).
    
Find the minimum, maximum and average latency.
Find the minimum maximum and average latency .
def ping_statistics(list):
    max_delay = list[0]
    mini_delay = list[0]
    sum = 0
    for item in list:
        if item >= max_delay:
            max_delay = item
        elif item <= mini_delay:
            mini_delay = item
        sum += item
    avg_delay = int(sum / (len(list)))
    return mini_delay, max_delay, avg_delay
def ping_statistics ( list ) : max_delay = list [ 0 ] mini_delay = list [ 0 ] sum = 0 for item in list : if item >= max_delay : max_delay = item elif item <= mini_delay : mini_delay = item sum += item avg_delay = int ( sum / ( len ( list ) ) ) return mini_delay , max_delay , avg_delay
Find the minimum, maximum and average latency.
Find the minimum maximum and average latency .
"""Find the minimum, maximum and average latency.

    Args:
        :param list: the list of delay time where packet is received successfully.

    Returns:
        :return: minimum, maximum and average latency (integer type).
    """
:return: minimum, maximum and average latency (integer type).
: return : minimum maximum and average latency ( integer type ) .
list
param list: the list of delay time where packet is received successfully.
param list : the list of delay time where packet is received successfully .