0 out of 464 challenges solved
Write a Python function to calculate the lateral surface area of a cube given its side length. The lateral surface area of a cube is the sum of the areas of its four vertical faces. If the side length of the cube is `l`, the lateral surface area can be calculated as: \[ LSA = 4 \times (l^2) \] #### Example Usage ```python [main.nopy] print(lateral_surface_area(5)) # Output: 100 print(lateral_surface_area(9)) # Output: 324 print(lateral_surface_area(10)) # Output: 400 ```
def lateral_surface_area(l: float) -> float: """ Calculate the lateral surface area of a cube given its side length. Args: l (float): The side length of the cube. Returns: float: The lateral surface area of the cube. """ # Replace the following line with the correct implementation pass