
    Design a function that enhances a student's learning path by adding a specified prerequisite activity before each existing module in their curriculum sequence. The function should take the current sequence of learning modules and a prerequisite activity as inputs, and return a new learning path with the prerequisite inserted before each original module. This modification ensures students complete necessary foundational work before tackling each main learning activity.
    

    
def insert_element(list, element):
    """
    Design a function that enhances a student's learning path by adding a specified prerequisite activity before each existing module in their curriculum sequence. The function should take the current sequence of learning modules and a prerequisite activity as inputs, and return a new learning path with the prerequisite inserted before each original module. This modification ensures students complete necessary foundational work before tackling each main learning activity.
    

    """
def insert_element(list, element):
    """
    Design a function that enhances a student's learning path by adding a specified prerequisite activity before each existing module in their curriculum sequence. The function should take the current sequence of learning modules and a prerequisite activity as inputs, and return a new learning path with the prerequisite inserted before each original module. This modification ensures students complete necessary foundational work before tackling each main learning activity.
    

    """
    list = [v for elt in list for v in (element, elt)]
    return list