
    In an adaptive learning system, determine the number of unique bidirectional learning paths between subject modules, where each path can be traversed in either direction for student progression. Given a list of paired subject connections, count how many distinct module pairs exist when considering ('Math', 'Physics') and ('Physics', 'Math') as the same learning relationship.
    

    
def count_bidirectional(test_list):
    """
    In an adaptive learning system, determine the number of unique bidirectional learning paths between subject modules, where each path can be traversed in either direction for student progression. Given a list of paired subject connections, count how many distinct module pairs exist when considering ('Math', 'Physics') and ('Physics', 'Math') as the same learning relationship.
    

    """
def count_bidirectional(test_list):
    """
    In an adaptive learning system, determine the number of unique bidirectional learning paths between subject modules, where each path can be traversed in either direction for student progression. Given a list of paired subject connections, count how many distinct module pairs exist when considering ('Math', 'Physics') and ('Physics', 'Math') as the same learning relationship.
    

    """
    res = 0
    for idx in range(0, len(test_list)):
        for iidx in range(idx + 1, len(test_list)):
            if test_list[iidx][0] == test_list[idx][1] and test_list[idx][1] == test_list[iidx][0]:
                res += 1
    return res