Advertisement
ancestor_tunji

#push_or_pop function

Feb 22nd, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement