Introduction
A new year brings lots of fun, many promises, a career goal, new hope, and so many things. I'm rewriting this article on 29 Dec 2021. The idea came to mind to wish Happy New Year in a different style like a programmer.
I developed a python program to print Happy New Year on the Terminal or Command-Prompt. The logic of the code is too simple. I hope You'll enjoy this one. Do copy the code and share it with Your friends to wish this new year differently.
Code
import time
from random import randint
for i in range(1,85):
print('')
space = ''
for i in range(1,1000):
count = randint(1, 100)
while(count > 0):
space += ' '
count -= 1
if(i%10==0):
print(space + 'Happy New Year 2022🎉')
elif(i%9 == 0):
print(space + "🪅")
elif(i%5==0):
print(space +"🎈")
elif(i%8==0):
print(space + "🎈")
elif(i%7==0):
print(space + "🍁")
elif(i%6==0):
print(space + "Wish a Covid Free World!")
else:
print(space + "🔸")
space = ''
time.sleep(0.2)