Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list = [5, 1, 3, 2, -5]
- list_2 = [-1, 5, 7, -3.0, -5]
- def print_all_negative_n(list):
- for n in list:
- if n < 0:
- print(n)
- return None
- print(print_all_negative_n(list))
- print("--------------")
- print(print_all_negative_n(list_2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement