Exam Questions-CBSE12A-2019-B04C-C1 #PYTHON#7156
Problem Statement - B04C-2019S-C1
Considering the following definition of class STOCK, write a method/function COSTLY() in pyhton to search and display Name and Price from a pickled file STOCK.DAT, where Price of the items are more than 1000.
class Stock: def __init__(self, N, P): self.Name=N self.Price=P def Show(self) : print self.Name, "@", self.Price
CSKC| Created: 11-Apr-2019 | Updated: 11-Apr-2019|CBSE12A-2019