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
def caesar_encrypt(realText, step): | |
outText = [] | |
cryptText = [] | |
uppercase = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'] | |
lowercase = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] | |
for eachLetter in realText: | |
if eachLetter in uppercase: | |
index = uppercase.index(eachLetter) |
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) | |
def tetrahedrons_filled(tetrahedrons, water): | |
volTetrahedron = [] | |
numbers = 0 | |
remainWater = water |
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) |