wrea progroun to implement your Filter Fun which exactly like python
In built in function
Filter
Answers
Answer:
My father gave me the greatest gift anyone could give another person, he believed in me.” Everyone always says they have the best dad in the world, but that can't be rightek Education is what remains after one has forgotten what one has learned in school.”Parents have a lasting impact on children's learning. ... Research shows that when parents are involved in their children's education, children are more engaged with their school work, stay in school longer, and achieve better learning outcomes. This also translates into longer-term economic and social benefits.
Explanation:
# Python filter() function example.
# Calling function.
result = filter(None,(1,0,6)) # returns all non-zero values.
result2 = filter(None,(1,0,False,True)) # returns all non-zero and True values.
# Displaying result.
result = list(result)
result2 = list(result2)
print(result)