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