Advertisement
ancestor_tunji

#clean_up

Feb 22nd, 2020
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. #clean_up
  2. lists = ['cat', " ", 'er', 'pillar']
  3. def clean_up(lists):
  4.     for list in lists:
  5.         if " " in lists:
  6.             lists.remove(" ")
  7.         join = " ".join(lists)
  8.     return join
  9. clean_up(lists)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement