Generate a code snippet to print a pattern of stars in Python.
rows = 5
# Use two for loops to print pattern
for i in range(0, rows):
    for j in range(0, i + 1):
        print("* ", end="")
    print("\r")