Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def cleanup(alist):
- for words in alist:
- if words == "":
- continue
- elif words == " ":
- continue
- else:
- return " ".join(alist)
- # return "".join(alist)
- print(cleanup(["", "Wonderboy", "is", " ", "my", "", "nickname"]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement