Python does have a special function called filter(). It is a built-in function that takes two arguments: a function and an iterable. The filter() function applies the given function to each item in the iterable and returns an iterator containing only the items for which the function returns True.
00:00In this lecture, we have seen the map function that process and data can combine in single statement.
00:07And the other thing is that basically the process of memory address goes to the memory address and goes to the list of individual elements on the list.
00:20If you remember, I told you that if I do print this function, this function is not called,
00:27this function is not called, this function is called, this function is called memory address.
00:34Basically, if I run it, it will give me memory address.
00:37And this function is called map function.
00:40This memory address is called a process.
00:42The process is called and apply the list.
00:45This is the special function.
00:47This function is called single statement.
00:49This function is called simplify.
00:51Let's move on the other function, which is called filter function.
00:54Exactly.
00:58Instead of mapping individual entries to a process,
01:01Water also filter can be.
01:03With this great work.
01:04Instead of mapping individual entries to a process,
01:05this is the same thing.
01:06It makes this easy work.
01:07Instead of mapping existing entries to a process,
01:09is filter.
01:11You do these two activities.
01:12Dim╬п ╤Б╨╛╨▓╨╡╤А╤И╨╡╨╜╨╜╨╛ Person,
01:14they relate to settings.
01:15That is a process that applies to 1 by 1.
01:17wagons Maintenant,
01:18It makes this perfect╤Б╨║.
01:20For example, I am going to list it and put some random elements in it.
01:29Now, if I want to filter odd values or even values, I can easily do that.
01:36How can I define a function?
01:39Let's say, odds.
01:43I am going to list the odds.
01:47Basically, this is a parameter.
01:49We can differentiate to the values as a function.
01:54We can return values.
01:57Return what you want to do?
01:59You return to the values.
02:02We have to get the values as a function of the values.
02:06рдЖрдкрдХреЛ para li рдХреЗ рдЕрдВрджрд░ value рдЖ рд░рд╣реА рд╣реИ рдирд╛ рдЖрдкрдиреЗ