Skip to content

Commit d189e84

Browse files
committed
update
1 parent edec494 commit d189e84

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Work/bounce.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# bounce.py
22
#
33
# Exercise 1.5
4+
height = 100
5+
bounces = range(1, 11)
6+
for bounce in bounces:
7+
height *= 3/5
8+
print(bounce, round(height, 4))
9+

0 commit comments

Comments
 (0)