Skip to content

Instantly share code, notes, and snippets.

@SamoraMachel
Created June 4, 2021 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamoraMachel/a121897d6b0cee651faaa17c75f381cd to your computer and use it in GitHub Desktop.
Save SamoraMachel/a121897d6b0cee651faaa17c75f381cd to your computer and use it in GitHub Desktop.
from time import sleep
from random import randint
from colorama import Fore, Style
text1 = str(input("Enter holiday Message : "))
base1 = len(text1)
while True:
print("\033c")
for x in range(1, base1, 2):
y = randint(2, 12)
if x == 1:
print(Style.BRIGHT+Fore.YELLOW+"{:^40}".format("\u2721"))
elif y%5 == 0:
print(Fore.RED + "{:^40}".format(text1[:x]))
elif y%3 == 0:
print(Fore.GREEN + "{:^40}".format(text1[:x]))
else:
print(Fore.WHITE + "{:^40}".format(text1[:x]))
print(Fore.WHITE + "{:^39}".format("||||"))
print(Fore.WHITE + "{:^39}".format("||||"))
sleep(.50)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment