PYTHONL Telegram 4515
🖥 Выводим поздравление с Новым годом, с помощью Python


import time
import random
import pyfiglet as pf
from pyfiglet import Figlet
from termcolor import colored

text = "С новым 2025 годом"

color_list = ['red', 'green', 'blue', 'yellow']

data_list = []

with open('texts.txt') as f:

data_list = [line.strip() for line in f]

happy_new_year_art = pf.figlet_format(text)

for i in range(0, 1):

if i % 2 == 0:

f = Figlet(font=random.choice(data_list))

text_art = colored(f.renderText(text), random.choice(color_list))

else:

text_art = happy_new_year_art

print("\n", text_art)


@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4211🔥5😁4😢1



tgoop.com/pythonl/4515
Create:
Last Update:

🖥 Выводим поздравление с Новым годом, с помощью Python


import time
import random
import pyfiglet as pf
from pyfiglet import Figlet
from termcolor import colored

text = "С новым 2025 годом"

color_list = ['red', 'green', 'blue', 'yellow']

data_list = []

with open('texts.txt') as f:

data_list = [line.strip() for line in f]

happy_new_year_art = pf.figlet_format(text)

for i in range(0, 1):

if i % 2 == 0:

f = Figlet(font=random.choice(data_list))

text_art = colored(f.renderText(text), random.choice(color_list))

else:

text_art = happy_new_year_art

print("\n", text_art)


@pythonl

BY Python/ django




Share with your friend now:
tgoop.com/pythonl/4515

View MORE
Open in Telegram


Telegram News

Date: |

Telegram desktop app: In the upper left corner, click the Menu icon (the one with three lines). Select “New Channel” from the drop-down menu. Each account can create up to 10 public channels best-secure-messaging-apps-shutterstock-1892950018.jpg How to Create a Private or Public Channel on Telegram? Developing social channels based on exchanging a single message isn’t exactly new, of course. Back in 2014, the “Yo” app was launched with the sole purpose of enabling users to send each other the greeting “Yo.”
from us


Telegram Python/ django
FROM American