Python Program To Generate Pattern 4
Write Python Program To Generate Pattern 4
# Write Python Program To Generate Pattern 4 n = 6 m = 4 i = 1 while(i <= n): j = 1 while(j <= m): print('*', end = ' ') j = j + 1 print('') i = i + 1
Output:
* * * *
* * * *
* * * *
* * * *
* * * *
* * * *