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
0
4views

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 …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.