In Python Programming language the Patterns are print using the Loops. To print a Pattern of
Stars (*) we need a Loops that controls number of rows and number of columns and print Pattern
accordingly. Some Star (*) Patterns Python Program are Shown Below.
SIMPLE STAR (*) PATTERN
CODE :
# Simple Star Pattern Using Python www.codewithcurious.com
def Pattern(rows):
for i in range(0, rows):
for j in range(0, i+1):
print("* ", end="")
print("\n")
rows = 7
Pattern(rows)
Output :