Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- word_file = "/usr/share/dict/words"
- wordfile=open(word_file).read().splitlines()
- def reply():
- i = 0
- reply = []
- words = random.randint(0,100)
- while i < words:
- reply.append(random.choice(wordfile))
- i = i+1
- reply1 = ' '.join(reply)
- print reply1
- def ask():
- raw_input('Ask your question: ')
- reply()
- while True:
- ask()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement