import random
import sys
import os.path

def random_list(list_names):
    items = []
    for list_name in list_names:
        filename = list_name + ".txt"
        if os.path.isfile(filename):
            with open(filename, "r") as file:
                list = file.read().splitlines()
                item = random.choice(list)
                items.append(item)
        else:
            print(f"{filename} does not exit")
    print(items)
    return items
ba545e6efd8041a2d1b1c5a24befcc5a9ba5de2b
<mask token>

<mask token>


def random_list(list_names):
    items = []
    for list_name in list_names:
        filename = list_name + '.txt'
        if os.path.isfile(filename):
            with open(filename, 'r') as file:
                list = file.read().splitlines()
                item = random.choice(list)
                items.append(item)
        else:
            print(f'{filename} does not exit')
    print(items)
    return items

import random
import sys
import os.path


def random_list(list_names):
    items = []
    for list_name in list_names:
        filename = list_name + '.txt'
        if os.path.isfile(filename):
            with open(filename, 'r') as file:
                list = file.read().splitlines()
                item = random.choice(list)
                items.append(item)
        else:
            print(f'{filename} does not exit')
    print(items)
    return items

import random
import sys
import os.path

def random_list(list_names):
    items = []
    for list_name in list_names:
        filename = list_name + ".txt"
        if os.path.isfile(filename):
            with open(filename, "r") as file:
                list = file.read().splitlines()
                item = random.choice(list)
                items.append(item)
        else:
            print(f"{filename} does not exit")
    print(items)
    return items