python_bot/dicktxt/ForReadDict.py
Pavel_Duron 157833e41a
All checks were successful
continuous-integration/drone/push Build is passing
add sinonims for dick and def random word from dict
2022-12-16 19:19:23 +10:00

13 lines
238 B
Python

import random
def RandomDick():
with open('tests\diction.txt', 'r', encoding='utf-8') as file:
words = file.readlines()
random_line = random.choice(words).strip()
return random_line
random_line = RandomDick()