Skip to content

Commit bda5bf6

Browse files
committed
Add a calculation function
1 parent d32426c commit bda5bf6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

calculation.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from hashlib import sha256
2+
3+
x = 5
4+
y = 0 # We don't know what y should be yet
5+
6+
while sha256(f'{x*y}'.encode()).hexdigest()[-1] != "0":
7+
y += 1
8+
9+
print(f'The solution is y = {y}')

0 commit comments

Comments
 (0)