Created
February 15, 2015 16:57
-
-
Save nchitalov/5379ce93d44d70a55c15 to your computer and use it in GitHub Desktop.
task1_python_course
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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