a = 21 for i in range(a): n = 5*i b = i*2*'*' c = (a-1-i)*2*'.' print("%{}[{}->{}]".format(n,b.c))