1.

Write the output for the program?

Answer»

class Sample:

def_init_(self, num):

print(“Constructor of class Sample…”)

self.num=num

print(“The value is num)

S=Sample(10)

Constructor of class sample…

The value is: 10



Discussion

No Comment Found