Question #234917

@property

   def currentPrice(self):

       . . . # Return the value of __currentPrice

   @currentPrice.setter

   def currentPrice(self, newValue):

       . . .  # Set the value of __currentPrice

Expert's answer

#@property


def currentPrice(self):


   # Return the value of __currentPrice
   return __currentPrice


# @currentPrice.setter


def currentPrice(self, newValue):


   # Set the value of __currentPrice
   __currentPrice=newValue
LATEST TUTORIALS
APPROVED BY CLIENTS