import time
n = 0
texto = "Ho"
while n<3:
if n==0:
print(f"\033[1;31m{texto}\033[m")
elif n==1:
print(f"\033[1;32m\t{texto}\033[m")
else:
print(f"\033[1;30m\t\t{texto}\033[m")
time.sleep(2)
n = n + 1
print()
print("\033[1;32m ¡Feliz navidad!\033[m")
time.sleep(1)
print()
print("\033[1;33m\t\t\tMerry Christmas!\033[m")
time.sleep(1)
print()
print("\033[1;31m\t\t\t\t\t\tFeliz Natal!\033[m")
time.sleep(1)
# Outra Versão
import time
def arvore():
x ="^"
y = " "
for n in range(0,20,2):
if n==0:
print("\033[1;33m *\033[m")
print(f'\033[32m {y* (10-int(n/2))+(x*n)+x+y*(10-int(n/2))}\033[m')
print("__________||__________\n")
time.sleep(2)
n=0
while n < 3:
if n == 0:
print(f"\033[1;31m\tMERRY CHRISTMAS!!\033[m")
print()
time.sleep(1)
elif n == 1:
print(f"\033[1;30m\t\t\tFELIZ NATAL!!\033[m")
print()
time.sleep(2)
else:
print(f"\033[1;32m\t\t\t\t¡FELIZ NAVIDAD!!\033[m")
time.sleep(2)
time.sleep(2)
n = n + 1
arvore()