Skip to content

Instantly share code, notes, and snippets.

@nchitalov
Created February 15, 2015 16:57
Show Gist options
  • Save nchitalov/5379ce93d44d70a55c15 to your computer and use it in GitHub Desktop.
Save nchitalov/5379ce93d44d70a55c15 to your computer and use it in GitHub Desktop.
task1_python_course
import math
def fill_tetrahedron(num):
volume_tetrahedron = (num ** 3 / (6 * math.sqrt(2))) / 1000
return round(volume_tetrahedron, 2)
volume = fill_tetrahedron(100)
print(volume)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment