0 out of 464 challenges solved
Write a Python function `rectangle_area(length, breadth)` that calculates and returns the area of a rectangle given its `length` and `breadth`. #### Example Usage: ```python [main.nopy] print(rectangle_area(10, 20)) # Output: 200 print(rectangle_area(4, 5)) # Output: 20 ``` #### Constraints: - Both `length` and `breadth` will be positive integers.
def rectangle_area(length, breadth):
"""
Calculate the area of a rectangle given its length and breadth.
Args:
length (int): The length of the rectangle.
breadth (int): The breadth of the rectangle.
Returns:
int: The area of the rectangle.
"""
# TODO: Implement the function
pass