Python Program To Generate Pattern 32
Write Python Program To Generate Pattern 32
# Write Python Program To Generate Pattern 32 i = 1 n = 3 while(i <= n): k = 1 while(k < i): print(' ', end='') k += 1 j = i while(j <= n): print(n - i + 1, end = ' ') j += 1 print() i += 1
Output:
3 3 3
2 2
1