Passing functions with arguments to another function in Python?
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
seq
=
[
0
,
1
,
2
,
3
,
5
,
8
,
13
]
# result contains odd numbers of the list
result
=
filter
(
lambda
x: x
%
2
!
=
0
, seq)
print
(
list
(result))