Write Python code to display the following pattern:
1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
3 Likes
for i in range(1, 6): for j in range(i, 6): print(j, end=" ") print()
Answered By
2 Likes
5 5 4 5 4 3 5 4 3 2 5 4 3 2 1
1 3 5 5 7 9 7 9 11 13 9 11 13 15 17
9 9 7 9 7 5 9 7 5 3 9 7 5 3 1
What is a loop?