B04C-2019S-C1 – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12A-2019-B04C-C1 #PYTHON#7156    siteicon   siteicon  

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

Solution

TC++ #7156


Share

CSKC| Created: 11-Apr-2019 | Updated: 11-Apr-2019|CBSE12A-2019









Back