import random

def load_words():
    word_list = open("words.txt").read().split()
    return word_list


def choose_word():
    """
    word_list (list): list of words (strings)
    this function return one random world from list
    """
    word_list = load_words()
    secret_word = random.choice(word_list)
    secret_word = secret_word.lower()
    return secret_word

e4cf7359fddae090e03a9fdf8f546d33a8e43e81
<mask token>

<mask token>


def load_words():
    word_list = open('words.txt').read().split()
    return word_list


<mask token>

<mask token>


def load_words():
    word_list = open('words.txt').read().split()
    return word_list


def choose_word():
    """
    word_list (list): list of words (strings)
    this function return one random world from list
    """
    word_list = load_words()
    secret_word = random.choice(word_list)
    secret_word = secret_word.lower()
    return secret_word

import random


def load_words():
    word_list = open('words.txt').read().split()
    return word_list


def choose_word():
    """
    word_list (list): list of words (strings)
    this function return one random world from list
    """
    word_list = load_words()
    secret_word = random.choice(word_list)
    secret_word = secret_word.lower()
    return secret_word

import random

def load_words():
    word_list = open("words.txt").read().split()
    return word_list


def choose_word():
    """
    word_list (list): list of words (strings)
    this function return one random world from list
    """
    word_list = load_words()
    secret_word = random.choice(word_list)
    secret_word = secret_word.lower()
    return secret_word
