import itertools


def create_permutations(length):
    """
Create the list of permutations for a given length 'length'.
This makes combinations of the numbers in the list of 1 through 'length'.
(uses 'itertools' library)
    """
    if length == 1:
        return 1
    else:
        permutations_list = itertools.permutations(range(1,length+1))
        
    return '\n'.join([' '.join(map(str, t)) for t in permutations_list])