I have a list like,
old_list=["a_apple","b_banana","c_cherry"]
and I want to get new list using lambda.
new_list=["apple","banana","cherry"]
I tried but it doesn't work as I expected. here is what I wrote.
new_list=filter(lambda x: x.split("_")[1], old_list)
what is the problem ?