Q:

Star pattern : 11، write python program to print the following pattern

0

Star pattern 11

    *
   * *
  *   *
 *     *
*********

All Answers

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

for row in range(1,5):
    for col in range(1,8):
        if (row==4 or row+col==5 or col-row==3):
            print("*",end="")
        else:
            print(" ",end="")
    print()

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

total answers (1)

Star pattern : 12، write python program to print ... >>
<< Star pattern : 10، write python program to print ...