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

Growing Rows Of Stars

easyLoops

📄 Code

Read carefully — what does this print?
1for row in [1, 2, 3]:
2 for col in [1, 2, 3]:
3 if col <= row:
4 print('*', end='')
5 print()

🎯 Your Answer