Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- l = [1, 3, 3 , 7]
- def modify_list(l):
- [l.remove(i) for i in l if not i%2 == 0]
- copy = l; copied = list(copy); l.clear()
- [l.append(i//2) for i in copied if i not in l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement