
    Write a function that determines the number of different ways a course's total assignments can be equally distributed across different time periods, where each period must contain the same number of assignments without any remaining unassigned work. For example, if there are 12 total assignments, they could be distributed as 1 assignment across 12 periods, 2 assignments across 6 periods, 3 assignments across 4 periods, 4 assignments across 3 periods, 6 assignments across 2 periods, or 12 assignments in 1 period, making 6 possible distribution patterns.
    

    
def divisor(n):
    """
    Write a function that determines the number of different ways a course's total assignments can be equally distributed across different time periods, where each period must contain the same number of assignments without any remaining unassigned work. For example, if there are 12 total assignments, they could be distributed as 1 assignment across 12 periods, 2 assignments across 6 periods, 3 assignments across 4 periods, 4 assignments across 3 periods, 6 assignments across 2 periods, or 12 assignments in 1 period, making 6 possible distribution patterns.
    

    """
def divisor(n):
    """
    Write a function that determines the number of different ways a course's total assignments can be equally distributed across different time periods, where each period must contain the same number of assignments without any remaining unassigned work. For example, if there are 12 total assignments, they could be distributed as 1 assignment across 12 periods, 2 assignments across 6 periods, 3 assignments across 4 periods, 4 assignments across 3 periods, 6 assignments across 2 periods, or 12 assignments in 1 period, making 6 possible distribution patterns.
    

    """
    for i in range(n):
        x = len([i for i in range(1, n + 1) if not n % i])
    return x