Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pprint import pprint
- def main(text):
- text = text.replace("\n", '')
- text = text.replace(' ', '')
- text = text.replace('<:', '')
- text = text.replace(':>', '')
- text = text.replace(';', '')
- text = text.replace('=:', '♂')
- text = text.split("glob`")
- text = text[1:]
- result = {}
- for i in range(len(text)):
- text[i] = text[i].split("♂")
- result = {text[i][1]: text[i][0] for i in range(len(text))}
- return result
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement