Advertisement
ancestor_tunji

#long_strings

Feb 22nd, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. #long_strings
  2. lists = ["apple", "orange"]
  3. err = ["work"]
  4. def long_strings(lists):
  5.     new_lists = []
  6.     for list in lists:
  7.         if len(list) >= 5:
  8.             new_lists.append(list)
  9.         else:
  10.             new_lists.append([])
  11.     return new_lists
  12.          
  13. long_strings(lists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement