Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- This program does the following:
- 1. cleans up the white space on both sides
- 2. replaces "g" with "z" and
- 3. replaces " " with "!"
- """
- def fancy_cleanup(edit):
- print(edit.strip().replace("g", "z").replace(" ", "!"))
- fancy_cleanup(" grenade ")
- fancy_cleanup(" all over to you ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement