SHARE
TWEET

#push_or_pop function

ancestor_tunji Feb 22nd, 2020 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #push_or_pop function
  2. lists = [10, 29, 4]
  3. def push_or_pop(lists):
  4.     new_lists = []
  5.     for list in lists:
  6.         if list > 5:
  7.             new_lists.append(list)
  8.        
  9.     return new_lists
  10. push_or_pop(lists)
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