0 out of 464 challenges solved
Write a Python function `surface_area_of_cube(side_length)` that calculates and returns the surface area of a cube given the length of one of its sides. The surface area of a cube is calculated using the formula: \[ \text{Surface Area} = 6 \times \text{side\_length}^2 \] #### Example Usage ```python [main.nopy] print(surface_area_of_cube(5)) # Output: 150 print(surface_area_of_cube(3)) # Output: 54 print(surface_area_of_cube(10)) # Output: 600 ``` #### Constraints - The input `side_length` will be a positive integer. - The function should return an integer representing the surface area.
def surface_area_of_cube(side_length): """ Calculate the surface area of a cube given the side length. Args: side_length (int): The length of one side of the cube. Returns: int: The surface area of the cube. """ # Placeholder for the solution pass