I am trying to use the filter() out numbers in a string:
s = "The Great Depression lasted from 1929 to 1939."
numbers = filter(lambda n: n==isinstance(s,int),s)
for i in numbers:
print(i)
however, when I print numbers
nothing is printed- any ideas why this is? Is my lambda function correct?