how to pick a random word from a text file in python code example
Example: choice random word in python from a text file
import random
print(random.choice(open('file.txt').read().split()).strip())
import random
print(random.choice(open('file.txt').read().split()).strip())