class fact():
    def insert(self,num):
        for i in range(1,num+1):
        print("The factorial of", num, "is", factorial)
d=fact()
d.insert(num=int(input('Enter the number')))

class fact():
    def insert(self,num):
        for i in range(1,num+1):
        print("The factorial of", num, "is", factorial)
d=fact()
d.insert(num=int(input('Enter the number')))
