Program for Area And Perimeter Of Rectangle | Utility function ; Driver function
def areaRectangle ( a , b ) : NEW_LINE INDENT return ( a * b ) NEW_LINE DEDENT def perimeterRectangle ( a , b ) : NEW_LINE INDENT return ( 2 * ( a + b ) ) NEW_LINE DEDENT a = 5 ; NEW_LINE b = 6 ; NEW_LINE print ( " Area ▁ = ▁ " , areaRectangle ( a , b ) ) NEW_LINE print ( " Perimeter ▁ = ▁ " , perimeterRectangle ( a , b ) ) NEW_LINE