L=int(input('enter the length of the rectangle:'))
print(' ')
B=int(input('enter the breadth of the rectangle:'))
print(' ')
P=2*(L+B)
print('the perimeter of the rectangle is: ')
print(P)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: