New course! Every coder should learn Generative AI!
Try a free lesson0
What do you want to do with them, if you want to return a different lambda, you could use a closure, or evaluate a string like this:
eval('lambda x: return x ** {}'.format(myVar))