Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #push_or_pop function
- lists = [10, 29, 4]
- def push_or_pop(lists):
- new_lists = []
- for list in lists:
- if list > 5:
- new_lists.append(list)
- return new_lists
- push_or_pop(lists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement