objrball py -simulation of racquet game illustrates design with objects from random import random class playera player keeps track of service probability and score def __init__(selfprob)create player with this probability self prob prob self score def winsserve(self)returns boolean that is true with probability self prob return random(<self prob def incscore(self)add point to this player' score self score self score def getscore(self)returns this player' current score return self score class rballgamea rballgame represents game in progress game has two players and keeps track of which one is currently serving def __init__(selfprobaprobb)create new game having players with the given probs self playera player(probaself playerb player(probbself server self playera player always serves first def play(self)play the game to completion while not self isover()if self server winsserve()self server incscore(elseself changeserver(