CJCoding With Joseph
15free / daySign inCreate account
← Back to Question List
Python Code Walkthrough #19

Counting Down Inside Counting Down

hardLoops

📄 Code

Read carefully — what does this print?
1row: int = 3
2while row > 0:
3 col: int = row
4 while col > 0:
5 print(col, end=' ')
6 col = col - 1
7 print()
8 row = row - 1
9print(row, col)

🎯 Your Answer