def make_list(nb_letters):
    """Makes the list of words.
    Args:
        nb_letters (int): number of letters in the words of the list
    Returns:
        list: the list of words
    """
    words_list = []
    # Open the file that contains the words with the required number of letters
    with open(f'data/mots_{nb_letters}.txt', 'r') as file:
        for word in file:
            # For each word in the file, we remove "\n" and add it to the list
            words_list.append(word.replace("\n",""))
    return words_list