Skip to main content

Python: calculating the area of rectangle

print "Enter the length and breadth of rectangle"
length = float(raw_input("Length: "))
breadth = float(raw_input("Breadth: "))
print "Area:", length * breadth

Comments