<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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