Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- code = input().split(" ")
- decoded_string = []
- for i in code:
- word_list = list(i)
- num = ""
- while word_list[0] in "1234567890":
- num += word_list[0]
- word_list.pop(0)
- num_to_str = chr(int(num))
- word_list.insert(0, num_to_str)
- word_list[1], word_list[-1] = word_list[-1], word_list[1]
- decoded_string += ["".join(word_list)]
- for j in decoded_string:
- print(j, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement