I am receiving the error
TypeError: \'filter\' object is not subscriptable
When trying to run the following block of code
Use list before filter condtion then it works fine. For me it resolved the issue.
list
filter
For example
list(filter(lambda x: x%2!=0, mylist))
instead of
filter(lambda x: x%2!=0, mylist)