x = 7 for i in range(7): x =x-1 j =x while j>=1: print(j,end=" ") j= j-1 print("\n")