Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def long_string(string_list):
- new_list = [ ]
- for string in string_list:
- if len(string)>=5:
- new_list.append(string)
- print(new_list)
- long_string(["Hello", "Goodbye", "Sam"]) #Example the argument must be a list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement