Guest User

Untitled

a guest
Jun 24th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3.  
  4. def fukusuu_replace(lines):
  5. wawawa_dict = {
  6. 'せい': 'SAY',
  7. 'へい': 'HEY',
  8. 'わい': 'WAI',
  9. }
  10.  
  11. for key, value in wawawa_dict.items():
  12. lines = lines.replace(key, value)
  13.  
  14. return lines
  15.  
  16.  
  17. result = fukusuu_replace('せかいへいわいわい')
  18. print(result)
Add Comment
Please, Sign In to add comment