Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #long_strings
- lists = ["apple", "orange"]
- err = ["work"]
- def long_strings(lists):
- new_lists = []
- for list in lists:
- if len(list) >= 5:
- new_lists.append(list)
- else:
- new_lists.append([])
- return new_lists
- long_strings(lists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement