반응형
[python] Happy New year 2025 loop
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 2025🎉')
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 + "❤️")
else:
print(space + "🔸")
space = ''
time.sleep(0.2)
반응형
'프로그래밍 > Python' 카테고리의 다른 글
[python] Merry christmas Tree (0) | 2024.12.24 |
---|---|
[python] pair plot (1) | 2024.12.20 |
[python] Generate OTP using python (1) | 2024.12.13 |
[python] Rich is a Python library for rich text and beautiful formatting in the terminal. (0) | 2024.12.11 |
[python] Code: Turtle Yellow Heart on Black Background (0) | 2024.12.06 |