def is_sorted(lyst):
    """ This function test if a list is sorted and returns true if it is
    """
    result = True
    for num in range(1, len(lyst)):
        if lyst[num-1] > lyst[num]:
            result = False
    return result