
    Design a function that analyzes a student's sequence of assessment scores to determine if their performance shows a consistent pattern (either steadily improving or declining), which will help adjust the learning platform's difficulty level. The function should evaluate if the sequence of scores is monotonic, meaning all scores are either consistently increasing or consistently decreasing throughout the sequence.
    

    
def is_Monotonic(A):
    """
    Design a function that analyzes a student's sequence of assessment scores to determine if their performance shows a consistent pattern (either steadily improving or declining), which will help adjust the learning platform's difficulty level. The function should evaluate if the sequence of scores is monotonic, meaning all scores are either consistently increasing or consistently decreasing throughout the sequence.
    

    """
def is_Monotonic(A):
    """
    Design a function that analyzes a student's sequence of assessment scores to determine if their performance shows a consistent pattern (either steadily improving or declining), which will help adjust the learning platform's difficulty level. The function should evaluate if the sequence of scores is monotonic, meaning all scores are either consistently increasing or consistently decreasing throughout the sequence.
    

    """
    return all((A[i] <= A[i + 1] for i in range(len(A) - 1))) or all((A[i] >= A[i + 1] for i in range(len(A) - 1)))