Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Filter in Python
elena1234
Feb 1st, 2022
(
edited
)
290
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.13 KB
| None
|
0
0
raw
download
clone
embed
print
report
text
=
input
(
)
.
split
(
' '
)
sequence2
=
list
(
map
(
int
,
text
)
)
result
=
filter
(
lambda
x: x %
2
==
0
,
sequence2
)
print
(
list
(
result
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
C++ | 12 sec ago | 5.52 KB
Farm turtle
Lua | 19 min ago | 2.63 KB
Untitled
JavaScript | 58 min ago | 2.87 KB
XHyakumeX
Lua | 1 hour ago | 3.32 KB
"Interactive Game" rev_02
Arduino | 2 hours ago | 5.51 KB
**Game Interface** rev_01
Arduino | 2 hours ago | 5.51 KB
PHP OOP
PHP | 2 hours ago | 6.73 KB
BatalhaNavalSimplificada
Java | 2 hours ago | 5.42 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!