Skip to content

Commit 79b865c

Browse files
committed
Add exercise017
1 parent 2709e78 commit 79b865c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

exercise017.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from math import hypot
2+
3+
ol = float(input('Length of opposite leg: '))
4+
al = float(input('Length of adjacent leg: '))
5+
hy = hypot(ol, al)
6+
7+
print('The hypotenuse will measure {:.2f}'.format(hy))

0 commit comments

Comments
 (0)