1.

Find the error in the following program to get the given output?class Fruits:def_init_(self, f1, f2):self.f1=f1self.f2=f2def display (self):print(“Fruit 1 = %s, Fruit 2 = %s” %(self.fl, self.f2)) F = Fruits (‘Apple’ , ‘Mango’)del F.displayF.display( )

Answer»

Output

Fruit 1 = Apple, Fruit 2 = Mango

In line No. 8, del F.display will not come



Discussion

No Comment Found