how to a random word form 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())