# Title: Right-angled triangle pattern
# Heading: Python Program to Print a Right-Angled Triangle Pattern
# Level: beginner
# Tags: star pattern, right-angled triangle, half pyramid, loops
# About: Prints a right-angled triangle of stars with one more star on each row, using a loop and string repetition.

def star_triangle(n):
    """Print a right-angled triangle of stars, n rows tall."""
    for row in range(1, n + 1):
        print("*" * row)


star_triangle(5)
