Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- file=open('wordlist.md','r')
- readfile=file.read()
- words=list(map(str,readfile.split()))
- random_word=random.choice(words)
- words.remove(random_word)
- #words.append('nano')
- file_add=open('wordlist.md','w')
- for item in words:
- file_add.write(item+'\n')
- print(words)
- dictionary={
- "after":"movie",
- "star":"galaxy",
- "earth":"planet"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement