Happy New Year 2020 Program in Python

5


Happy New Year 2020 Program in Python





Code :-

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 2020')
    else:
        print(s + '*')

    s = ''
    time.sleep(0.3)




Post a Comment

5Comments
Post a Comment