import random


def get_words(part, num):
    """
    For a given part of speech, return a list of num unique words.
    :param part: part of speech
    :param num: number of words in the part of speech to be returned
    :return: list of words
    """

    if num > len(part):
        raise ValueError('Too many words asked than available for part {}'.format(part))

    words = [random.choice(part) for n in range(num)]

    while len(set(words)) != num:
        words = [random.choice(part) for n in range(num)]

    return words