Nested loops create patterns. Here's a right triangle: python for i in range(1, 6): print("*" * i) Output: * ** *** **** ***** Each row prints i asterisks. Row prints , row prints , and so on.
String multiplication makes this clean and simple. For more complex patterns, you might need inner loops instead of string multiplication. The key is figuring out the mathematical relationship between the row number and what characters appear on that row.