Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- def fukusuu_replace(lines):
- wawawa_dict = {
- 'せい': 'SAY',
- 'へい': 'HEY',
- 'わい': 'WAI',
- }
- for key, value in wawawa_dict.items():
- lines = lines.replace(key, value)
- return lines
- result = fukusuu_replace('せかいへいわいわい')
- print(result)
Add Comment
Please, Sign In to add comment