Area of a square from diagonal length | Returns area of square from given diagonal ; Driver function .
def findArea ( d ) : NEW_LINE INDENT return ( d * d ) / 2 NEW_LINE DEDENT d = 10 NEW_LINE print ( " % .2f " % findArea ( d ) ) NEW_LINE