Do you want to learn Free Python with Real world Project and Certification ???
Anonymous Poll
96%
Yes
4%
No
👍2
Already 50+ students enrolled Thanks to All Action taker students 💯✅🚀
It is available on 80% discount so don't miss this offer 🎁🚀
It is available on 80% discount so don't miss this offer 🎁🚀
👍4
The filter() method filters the given sequence with the help of a function that tests each element in the sequence to be true or not.
Syntax :
filter(function, sequence)
Parameters: function: function that tests if each element of a sequence true or not. sequence: sequence which needs to be filtered, it can be sets, lists, tuples, or containers of any iterators.
Returns: returns an iterator that is already filtered
Syntax :
filter(function, sequence)
Parameters: function: function that tests if each element of a sequence true or not. sequence: sequence which needs to be filtered, it can be sets, lists, tuples, or containers of any iterators.
Returns: returns an iterator that is already filtered
👍2
Forwarded from PythonCoder Official
🌟𝗦𝗼𝘂𝗿𝗰𝗲 𝗖𝗼𝗱𝗲 💻👇 Of Rainbow Project 🌈