def numberofballs(self,numofoverssofar):
        """Convert overs to number of balls so far"""
        y = float(numofoverssofar)
        b = int(numofoverssofar)
        numberofballsinthisover = (y-b)*10
        numberofballsbefore = b*6
        totalnumberofballs = numberofballsinthisover + numberofballsbefore
        return totalnumberofballs
Convert overs to number of balls so far
recipes/Python/334728_Cricket_GUI/recipe-334728.py