Advertisement
Ambience_Media

Untitled

Feb 22nd, 2020
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def cleanup(alist):
  2.     for words in alist:
  3.         if words == "":
  4.             continue
  5.  
  6.         elif words == " ":
  7.             continue
  8.  
  9.         else:
  10.             return " ".join(alist)
  11.  
  12.     # return "".join(alist)
  13.  
  14.  
  15. print(cleanup(["", "Wonderboy", "is", " ", "my", "", "nickname"]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement