Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def positive_sum(arr):
- pos_arr = list(arr)
- for x in arr:
- if x < 0:
- pos_arr.remove(x)
- return sum(pos_arr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement