Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 22nd, 2018
93
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.29 KB
| None
|
0
0
raw
download
clone
embed
print
report
def even(element):
# если просто число, а не список
if isinstance(element, int):
return []
# далее если список
else:
ev = []
for i in element:
if i % 2 == 0:
ev.append(i)
return ev
Add Comment
Please,
Sign In
to add comment
Public Pastes
pastebin.ai - #1 pastebin alternative
PHP | 20 min ago | 0.81 KB
computercraft test script
Lua | 43 min ago | 2.14 KB
rps
JSON | 49 min ago | 4.14 KB
Untitled
Go | 55 min ago | 0.52 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 💰
GetText | 55 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
2024-04-26_stats.json
JSON | 1 hour ago | 4.16 KB
2024-04-26_stats.json
JSON | 1 hour ago | 4.15 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!