[Python] python[Python] python
🎆
Happy New Year
Week 1, 2026
def fireworks(n):
rows = (n - 1) // 2
for i in range(rows):
spaces_out = i
spaces_in = rows - i - 1
print(" " * spaces_out + "\\" + " " * spaces_in + "|" + " " * spaces_in + "/")
print("-" * n)
for i in reversed(range(rows)):
spaces_out = i
spaces_in = rows - i - 1
print(" " * spaces_out + "/" + " " * spaces_in + "|" + " " * spaces_in + "\\")
fireworks(99)