Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

star pattern in python

row = int(input("Enter number of row = "))
for r in range(row):
    for s in range(row-r-1):
        print(end=" ")
    for str in range(r+1):
        print("*", end=" ")
    print()
 
PREVIOUS NEXT
Tagged: #star #pattern #python
ADD COMMENT
Topic
Name
3+3 =