Code 37: Python program to find the perimeter of a rectangle | 365 days of Code

Опубликовано: 20 Март 2025
на канале: Code House
107
0

Here is the program to find the perimeter of a rectangle using Python.
Formula: Perimeter - 2X(l+b)
Code -
def perimeter(l,b):
return 2*(l+b)
print(perimeter(6,5)) # 18