Happy New Year 2022 status using python

A Very Happy New Year to all my friends. Today let us see the tutorial to wish happy new year using the python program. Happy New Year 2022 status using python

 

Video  Tutorial: Happy New Year 2022 status using python

 

Source Code: Happy New Year 2022 status using python

 

import time
from random import randint

for i in range(1,45):
    print('')

s = ''

for i in range(1,1000):
    count = randint(1,100)
    while (count > 0):
        s += ' '
        count -= 1

    if (i % 10 ==0):
        print(s + 'Happy New Year 2022)
    else:
        print(s + '*')

    s = ''
    time.sleep(0.3)

 

 

Output: 

 

Leave a Reply

Your email address will not be published.