Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def make_strange_words(num,file1,file2):
- """
- Takes 2 word list and combine words randomely.
- Print n words : num
- """
- for n in range(1,num):
- word1 = random.choice(open(file1).readlines()).rstrip('\n')
- word2 = random.choice(open(file2).readlines()).rstrip('\n')
- print(word1 + word2)
Advertisement
Add Comment
Please, Sign In to add comment