<reponame>trial1user/Printing-Pattern-Programs
n = 7  # size
for x in range(0, n):
    for y in range(0, n):
        if (x == 0 or y == 0 or x == y or x == n - 1 or y == n - 1 or x + y == n - 1):
            print("* ", end="")  # *space
        else:
            print("  ", end="")  # two spaces
    print()
n = 7  # size
for x in range(0, n):
    for y in range(0, n):
        if (x == 0 or y == 0 or x == y or x == n - 1 or y == n - 1 or x + y == n - 1):
            print("* ", end="")  # *space
        else:
            print("  ", end="")  # two spaces
    print()
# size # *space # two spaces