Write a python program for
1
1 0
1 0 1
1 0 1 0
1 0 1 0 1
Answers
Answered by
0
Answer:
aap kes section ho........ ma 9th mein hoon❤️❤️❤️❤️ dear
Answered by
1
Question:-
Write a Python program to display the following pattern.
1
1 0
1 0 1
1 0 1 0
1 0 1 0 1
Program:-
n=int(input("Enter the number of rows: "))
for i in range(1,n+1):
for j in range(1,i+1):
print(j%2, end=" ")
print()
Similar questions