Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fancy_cleanup(string):
- cleanup = string.strip().replace("g", "z").replace(" ", "!")
- return cleanup
- print(fancy_cleanup(" geronimo crikey "))
- print(fancy_cleanup(" nonensense "))
- print(fancy_cleanup("grade"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement