Run
class Student: def __init__(self, name, age, country): self.name = name self.age = age self.country = country # Check if list object x is an instance of Student class x = ['Hari', 44] if isinstance(x, Student): print('x is an instance of Student class.') else: print('x is not an instance of Student class.')
Output