def myFunction(name):
index = 0
list = self.getList()
index = (x => x.name == name)
return index
i want to use lamba expression to find an index of an element in a python list just as in C#. is it possible to use lambda expressions just as in C# to find an index of a specific element in python list . If so please provide an example
lista standard python list or an object?