Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pyramid pattern

rows = int(input("Enter number of rows: "))

for i in range(rows):
    for j in range(i+1):
        print("* ", end="")
    print("
")
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #pyramid #pattern
ADD COMMENT
Topic
Name
6+6 =