Programs for Printing star * Patterns

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 :

 

Leave a Comment

Your email address will not be published. Required fields are marked *