# coding = utf-8classRecursive:def__init__(self):passdeffibonacci(self, value):
res_list =[0,1]ifisinstance(value,int):if value <2:return res_list[value]else:return(self.fibonacci(value -1)+ self.fibonacci(value -2))else:raise TypeError("Insert value must be integer")deffactorial(self, value):ifisinstance(value,int):if value <2:return1else:return(value * self.factorial(value -1))else:raise TypeError("Insert value must be integer")deftask(self):passif __name__ =='__main__':
rec = Recursive()print(rec.fibonacci(10))print(rec.factorial(5))