Friday, 7 October 2022

python3 - filter list and python3 sandbox

 https://stackoverflow.com/questions/33174276/why-does-foo-filter-return-a-filter-object-not-a-list

https://www.pythontutorial.net/python-basics/python-filter-list/

// to get list back user list(filter(xxx)

list(filter(lambda x: x == "hello", ["hello", "goodbye"]))


python3 sandbox
https://pythonsandbox.com/

No comments:

Post a Comment