Advertisement
Guest User

clara file 1

a guest
Nov 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1.  
  2.     def set_price(self, p):
  3.         self.__price = p
  4.  
  5.     #methods or operator for class
  6.  
  7. #getOrderPrice
  8. #dTotalPrice
  9. #getOrderWeightInOunces
  10. #iTotalWeight
  11.     def dTotalPrice (self):
  12.         getOrderPrice =
  13.         return getOrderPrice
  14.  
  15.     def iTotalWeight (self):
  16.         getOrderWeightInOunces =
  17.         return getOrderWeightInOunces
  18.        
  19.     def __str__(self):
  20.         TStr = " "
  21.         TStr += "Total price is " + str(self.dTotalPrice) + "\n"
  22.         TStr += "Total weight " + str(self.iTotalWeight) + "\n"
  23.         return TStr
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement