<reponame>Ashokkommi0001/patterns
def for_S():
    for row in range(7):
        for col in range(5):
            if (row==0 or row==3 or row==6) and (col>0 and col<4) or (col==0 and (row>0 and row<3)) or (col==4 and (row>3 and row<6)):
                print("*",end=" ")
            else:
                print(end="  ")
        print()

def while_S():
    i=0
    while i<7:
        j=0
        while j<5:
            if (i==0 or i==3 or i==6) and (j>0 and j<4) or (j==0 and (i>0 and i<3)) or (j==4 and (i>3 and i<6)):
                print("*",end=" ")
            else:
                print(end="  ")
            j+=1
        i+=1

def for_S():
    for row in range(7):
        for col in range(5):
            if (row==0 or row==3 or row==6) and (col>0 and col<4) or (col==0 and (row>0 and row<3)) or (col==4 and (row>3 and row<6)):
                print("*",end=" ")
            else:
                print(end="  ")
        print()

def while_S():
    i=0
    while i<7:
        j=0
        while j<5:
            if (i==0 or i==3 or i==6) and (j>0 and j<4) or (j==0 and (i>0 and i<3)) or (j==4 and (i>3 and i<6)):
                print("*",end=" ")
            else:
                print(end="  ")
            j+=1
        i+=1