deffunc():
res =[]for i inrange(10):
f =lambda x:f"x+{i}"
res.append(f)return res
defcall(a):
func_list = func()for f in func_list:print(f(a))if __name__ =='__main__':
call(10)
deffunc():
res =[]for i inrange(3):# f = lambda x: f"x+{i}"
f = create(i)
res.append(f)return res
defcreate(i):returnlambda x:f"x+{i}"defcall(a):
func_list = func()for f in func_list:print(f(a))if __name__ =='__main__':
call(10)