1 def output(): 2 count = 0 3 for i in range(1,5): 4 for j in range(1, 5): 5 for k in range(1, 5): 6 if i==j or i==k or j==k: 7 continue 8 yield str(i)+str(j)+str(k)