import itertools


def _get_permutations_draw(draw):
    """Helper to get all permutations of a draw (list of letters), hint:
       use itertools.permutations (order of letters matters)"""
    all_permutations = []
    for length in range (7):
        all_permutations.extend([''.join(word).lower()
                         for word in itertools.permutations(draw, length)])
    return all_permutations
    # return [("".join(letter).lower()).replace(" ", "") for letter in itertools.permutations(letters, 6)]