You are going to act as a Python interpreter. You will be given a valid python program below. Write down what you think the result of its execution would be. Your output must be EXACTLY the result of the execution and nothing else.
situation
system
# Python

def is_sorted(array):
    n = len(array)
    # Array of length 0 or 1 is considered sorted
    if n == 0 or n == 1:
        return True
    for i in range(n-1):
        # Without the equals it will return false even when the array was sorted
        if array[i] > array[i+1]:
            return False
    return True

arr = [2, 3, 4]
print(is_sorted(arr)) # True
user
True
assistant