Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. str = "Always be careful"
  2. import string
  3. print str.replace("a", "b")
  4. print str.replace("b", "a")
  5. print str.replace("c", "&")
  6.  
  7. #decode the message
  8. str = "Blwbys be cbreful"
  9. print str.replace("a","b")
  10. str = "Always ae careful"
  11. print str.replace("b","a")
  12. str = "Always be &areful"
  13. print str.replace ("c","&")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement