Advertisement
ganiyuisholaafeez

Untitled

Feb 22nd, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. def encrypt_message(char):
  2.     alphabets = "abcdefghijklmnopqrstuvwxyz"
  3.     for char in alphabets:
  4.         print(char)
  5.  
  6. print(encrypt_message("abc"))
  7.  
  8. def cleanup(list_of_strings):
  9.     if " " in list_of_strings:
  10.         list_of_strings.remove(" ")
  11.         return " ".join(list_of_strings)
  12.  
  13. print(cleanup(["cat", "er", "pillar"]))
  14. print(cleanup(["cat", " ", "er", "", "pillar"]))
  15. print(cleanup(["", " ", ""]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement