
    Write a function that calculates the total length of adhesive sealing strip needed for a square medication compartment in a smart pillbox, given the compartment's side length in millimeters. The sealing strip must run continuously along all four edges of the compartment to ensure proper medication containment and freshness.
    

    
def square_perimeter(a):
    """
    Write a function that calculates the total length of adhesive sealing strip needed for a square medication compartment in a smart pillbox, given the compartment's side length in millimeters. The sealing strip must run continuously along all four edges of the compartment to ensure proper medication containment and freshness.
    

    """
def square_perimeter(a):
    """
    Write a function that calculates the total length of adhesive sealing strip needed for a square medication compartment in a smart pillbox, given the compartment's side length in millimeters. The sealing strip must run continuously along all four edges of the compartment to ensure proper medication containment and freshness.
    

    """
    perimeter = 4 * a
    return perimeter