
    Create a function for an adaptive learning platform that removes the first and last instance of a formatting marker from a student's submitted answer text to ensure standardized assessment. The function should accept the student's answer text and a specific formatting character as inputs, and return the cleaned text with only the first and last occurrences of that character removed.
    

    
def remove_Occ(s, ch):
    """
    Create a function for an adaptive learning platform that removes the first and last instance of a formatting marker from a student's submitted answer text to ensure standardized assessment. The function should accept the student's answer text and a specific formatting character as inputs, and return the cleaned text with only the first and last occurrences of that character removed.
    

    """
def remove_Occ(s, ch):
    """
    Create a function for an adaptive learning platform that removes the first and last instance of a formatting marker from a student's submitted answer text to ensure standardized assessment. The function should accept the student's answer text and a specific formatting character as inputs, and return the cleaned text with only the first and last occurrences of that character removed.
    

    """
    for i in range(len(s)):
        if s[i] == ch:
            s = s[0:i] + s[i + 1:]
            break
    for i in range(len(s) - 1, -1, -1):
        if s[i] == ch:
            s = s[0:i] + s[i + 1:]
            break
    return s