Class-Docstring
Wed 12 November 2025
# created : 20250113
# https://www.scientecheasy.com/2022/09/docstring-in-python.html/
# class docstring
class Rectangle:
"""
This is a class for calculating the area of a rectangle.
Parameters:
l (int) : The length of rectangle.
b (int) : The breadth of rectangle.
"""
print(Rectangle.__doc__)
This is a class for calculating the area of …Category: python-basics
Read More