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