daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Jun 22nd, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def even(element):
  2.     # если просто число, а не список
  3.     if isinstance(element, int):
  4.        return []
  5.     # далее если список
  6.     else:
  7.         ev = []
  8.         for i in element:
  9.             if i % 2 == 0:
  10.                ev.append(i)
  11.     return ev
RAW Paste Data
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
 
Top