Exercise 1.2 - Solution
(a) The Bouncing Ball
# bounce.py
height = 100
bounce = 1
while bounce <= 10:
height = height * (3.0/5)
print bounce, height
bounce += 1
[ Back ]
# bounce.py
height = 100
bounce = 1
while bounce <= 10:
height = height * (3.0/5)
print bounce, height
bounce += 1
[ Back ]