Skip to content

Commit 8615164

Browse files
Added solution.hide.py of exercise 25.
1 parent 319bef7 commit 8615164

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
#!/usr/bin/env python
21
import math
3-
def print_formula(n1,n2,n3):
4-
value = []
5-
items=[x for x in "{},{},{}".format(n1,n2,n3).split(',')]
6-
for d in items:
7-
value.append(str(int(round(math.sqrt(2*50*float(d)/30)))))
2+
def print_formula(num):
3+
return round(math.sqrt(2*50*num/30))
84

9-
return (','.join(value))
5+
print(print_formula(5))

0 commit comments

Comments
 (0)