Python Program Print Hollow Heart of Stars – This is a Python program that will print a Hollow Heart of stars.
![Hollow heart of stars Python program](https://easycodebook.com/wp-content/uploads/2023/06/python-program-hollow-heart-of-stars.png)
Hollow heart of stars Python program
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()