Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- def decode_str():
- with open("words.txt", "r") as f:
- words = " ".join(f.readlines())
- print("----- number of words:", len(words.split(',')))
- decode_l = ["dc " + w.strip() for w in words.split(',')]
- print("::".join(decode_l))
- if __name__ == '__main__':
- decode_str()
Advertisement
Add Comment
Please, Sign In to add comment