Search code snippets, questions, articles...

Pattern

for i in range (0,5):
    for j in range (0,i+1):
        print("* ",end="")
        print()
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool
Output
# Python Program - Pattern Program 1

Here use the range 

Was this helpful?
0 Comments