#-------------------------------------------------------------------------------
# Name:        module1
# Purpose:
#
# Author:      Owner
#
# Created:     23/04/2015
# Copyright:   (c) Owner 2015
# Licence:     <your licence>
#-------------------------------------------------------------------------------

import itertools

for x in itertools.permutations("abcd"):
    print (x)
