Search code snippets, questions, articles...

Pattern

for i in range (0,5):
    for j in range (0,i+1):
        print("* ",end="")
        print()
Output
# Python Program - Pattern Program 1

Here use the range 

Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet