def line(k): if (k < 0): return for i in range(k): print('*',end="") print() line(k-1) print("Going back") line(10)