For suppose depending upon the variable I want to import some classes, create its object and return it. for example :
if x=='SomeThing':
import something
object = something's object
else:
import nothing
object = nothing's object
object.function()
I want to do the above using the lambda how can I do this?
importstatement inside a lambda expression.lambda? Just use a standard function def