length=int(input("enter the length of the rectangle:\n "))
breadth=int(input("enter the breadth of the rectangle: \n"))
if (length==breadth):
    print("it is a square")
else:
    print("it is a rectangle")

Embed on website

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