def get_price_as_price(reward):
        """
        Returns a Price data structure from either a float or a Price
        """
        if isinstance(reward, Price):
            final_price = reward
        else:
            final_price = Price(reward)
        return final_price
def get_price_as_price ( reward ) : if isinstance ( reward , Price ) : final_price = reward else : final_price = Price ( reward ) return final_price
Returns a Price data structure from either a float or a Price