0 out of 464 challenges solved
Write a Python function `lateral_surface_area_cylinder(radius, height)` that calculates the lateral surface area of a cylinder. The lateral surface area of a cylinder is given by the formula: \[ A = 2 \pi r h \] Where: - \( r \) is the radius of the cylinder's base. - \( h \) is the height of the cylinder. #### Example Usage: ```python [main.nopy] print(lateral_surface_area_cylinder(10, 5)) # Expected output: 314.159 print(lateral_surface_area_cylinder(4, 5)) # Expected output: 125.664 print(lateral_surface_area_cylinder(4, 10)) # Expected output: 251.328 ``` #### Constraints: - The function should handle positive floating-point and integer values for `radius` and `height`. - Use the value of \( \pi \) from the `math` module for precision.
import math def lateral_surface_area_cylinder(radius, height): """ Calculate the lateral surface area of a cylinder. Args: radius (float): The radius of the cylinder's base. height (float): The height of the cylinder. Returns: float: The lateral surface area of the cylinder. """ # Placeholder for the solution pass