0
359views
Write a Python Program to Create Pyramid No Pattern of 0's and 1's in Python (0 if row no is even & 1 if row no is odd)
1 Answer
written 2.0 years ago by |
Explanation:-
Step 1:- Take input for no of rows
Step 2:- Start 1st for loop to iterate n no of times (n rows)
Step 3:- Take 2nd for loop to iterate i items in a row
Step 4:- Increment the value of i from 1 to n
Step 5:- Stop …