Find the diagonal of the Cube | Python3 program to find length of the diagonal of the cube ; Function to find length of diagonal of cube ; Formula to Find length of diagonal of cube ; Driver code ; Function call
from math import sqrt NEW_LINE def diagonal_length ( a ) : NEW_LINE INDENT L = 0 NEW_LINE L = a * sqrt ( 3 ) NEW_LINE return L NEW_LINE DEDENT a = 5 NEW_LINE print ( diagonal_length ( a ) ) NEW_LINE