12 lines
162 B
Python
12 lines
162 B
Python
import Ball
|
|
|
|
ball1 = Ball.Ball(5, "Red")
|
|
ball2 = Ball.Ball(1, "Yellow")
|
|
|
|
for i in range(10):
|
|
ball1.bounceBall()
|
|
|
|
ball2.bounceBall()
|
|
|
|
print(ball1)
|
|
print(ball2) |