Output not coming which shows in video

If you Want to show both age and name than use this program

class MyClass():

def init(self,name,age):



def Display(self):


obj = MyClass(“Ritik”,22)

print(“Your Name Is”,obj.name)

print(“Your Name Is”,obj.age)

And if you want to print both age and name without using print() than its not possible now if you use obj.name and obj.age both together than the output will be the age not name

Output error

Give indent in 1st if statement