programming-examples/python/Math/Calculate the volume of a tetrahedron.py

7 lines
169 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
import math
def volume_tetrahedron(num):
volume = (num ** 3 / (6 * math.sqrt(2)))
return round(volume, 2)
print(volume_tetrahedron(10))