
    Design a function for an automated grading system that calculates the total length of borders in a student's square-shaped writing composition area, where students must write their essays within the specified boundaries. Given the length of one border of the square writing area, determine the complete boundary length to ensure students stay within their designated writing space.
    

    
def square_perimeter(a):
    """
    Design a function for an automated grading system that calculates the total length of borders in a student's square-shaped writing composition area, where students must write their essays within the specified boundaries. Given the length of one border of the square writing area, determine the complete boundary length to ensure students stay within their designated writing space.
    

    """
def square_perimeter(a):
    """
    Design a function for an automated grading system that calculates the total length of borders in a student's square-shaped writing composition area, where students must write their essays within the specified boundaries. Given the length of one border of the square writing area, determine the complete boundary length to ensure students stay within their designated writing space.
    

    """
    perimeter = 4 * a
    return perimeter