Write a triangle pattern program.
Implement triangle_pattern(n) to return a left-aligned triangle containing n rows. Row i must contain exactly i asterisks, with rows separated by newline characters and no trailing newline. Return an empty string when n is zero.
def triangle_pattern(n):