Q:

Simple pattern printing programs in Python | Pattern 1

0
*
*  *
*  *  *
*  *  *  *
*  *  *  *  *

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

for row in range (0,5):
    for column in range (0, row+1):
        print ("*", end="")

    # ending row
    print('\r')

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now