Python Program Print Hollow Heart of Stars – This is a Python program that will print a Hollow Heart of stars.
Source Code
n = 6 for row in range(n): for col in range(n+1): if (row == 0 and col % 3 != 0) or (row == 1 and col % 3 == 0) or (row - col == 2) or (row + col == 8): print("*", end="") else: print(" ", end="") print()