حالت آفلاین — محتوا از حافظهٔ کش نمایش داده می‌شود

تبریک سال نو به سبک برنامه نویسان

تمرین آسان 2190 visibility link download flag

برنامه ای بنویسید که سال نو را به روشی خلاقانه به برنامه نویسان تبریک بگوید


این یک تمرین #فان هست بنابراین جواب درست یا غلط وجود نداره و حتی نیاز نیست کدی که مینویسید کار کنه. فقط کمی خلاقیت بخرج بدید :)
👨‍💻 20 ساعت قبل کاربر ناشناس این تمرین رو مشاهده کرد

reply 17

visibility
def new_year_greeting():
    greeting = r"""
    ███╗   ██╗ ██████╗ ██╗   ██╗██╗   ██╗██╗   ██╗    ██╗   ██╗ ██████╗ ██╗   ██╗
    ████╗  ██║██╔═══██╗██║   ██║██║   ██║██║   ██║    ██║   ██║██╔═══██╗██║   ██║
    ██╔██╗ ██║██║   ██║██║   ██║██║   ██║██║   ██║    ██║   ██║██║   ██║██║   ██║
    ██║╚██╗██║██║   ██║██║   ██║██║   ██║██║   ██║    ██║   ██║██║   ██║██║   ██║
    ██║ ╚████║╚██████╔╝╚██████╔╝╚██████╔╝╚██████╔╝    ╚██████╔╝╚██████╔╝╚██████╔╝
    ╚═╝  ╚═══╝ ╚═════╝  ╚═════╝  ╚═════╝  ╚═════╝      ╚═════╝  ╚═════╝   ╚═════╝ 
                                                                                    
    """
    print(greeting)
    print("
binary_art = {
    'H': [
        "101   101",
        "101   101",
        "111111111",
        "101   101",
        "101   101"
    ],
    'A': [
        " 0111110 ",
        "101   101",
        "111111111",
        "101   101",
        "101   101"
    ],
    'P': [
        "1111110 ",
        "101   10",
        "1111110 ",
        "101     ",
        "101     "
    ],
    'Y': [
        "101   101",
        " 101 101 ",
        "  11111  ",
        "    101  ",
        "    101  "
    ],
    'N': [
        "101   101",
        "110   101",
        "1011  101",
        "101 1 101",
        "101   101"
    ],
    'E': [
        "111111111",
        "101      ",
        "1111111  ",
        "101      ",
        "111111111"
    ],
    'W': [
        "101     101",
        "101     101",
        "101  1  101",
        "101  1  101",
        " 111   111 "
    ],
    'R': [
        "1111110 ",
        "101   101",
        "1111110 ",
        "101 101 ",
        "101   101"
    ],
    ' ': [
        "   ",
        "   ",
        "   ",
        "   ",
        "   "
    ]
}


def display_message(message):
    lines = ["", "", "", "", ""]
    for char in message:
        for i in range(5):
            lines[i] += binary_art[char][i] + "  "  # Add two spaces between characters
    for line in lines:
        print(line)

message = "HAPPY NEW YEAR"
display_message(message)
def new_year_greeting():
    message = """
    // Happy New Year 2024!
    #include <iostream>
    int main() {
        std::cout << "May your bugs be few and your commits be many!" << std::endl;
        std::cout << "Wishing you a year full of clean code and successful deploys." << std::endl;
        std::cout << "Happy Coding in 2024!" << std::endl;
        return 0;
    }
    """
    print(message)

new_year_greeting()
پاسخ هوش مصنوعی Ai Python
import time

programmers = [
    "Python Developer",
    "JavaScript Developer",
    "C++ Developer",
    "Java Developer",
    "Web Developer",
    "AI Developer"
]

print("Compiling New Year...")
time.sleep(1)

print("Loading happiness...")
time.sleep(1)

print("Removing bugs...")
time.sleep(1)

print("Installing success...")
time.sleep(1)

print("\n✨ HAPPY NEW YEAR ✨\n")

for programmer in programmers:
    print(f"

import pyttsx3
from  tts import text_to_speech
#محتوای text_to_speech
# به این صورت که :
#def text_to_speech(text):
        # engine=pyttsx3.init()
        # # speed with rate
        # engine.setProperty('rate',150)
        # # volume
        # engine.setProperty('volume',0.8)
        # engine.say(text)
        # engine.runAndWait()
print(f"Happy new year \n Let's have good time

print('Sal No Mobarak')
print('Omid Varam Sal Khobi Dashte Bashid')

0   1     I  I    /  _____
1   1     I   I  /  /____
1   11111 I    I/  /____

   I   /      0 0       1     1
   I  /      0   0      1     1
   I /      0    0      1     1
    1       0    0      1     1
    1       0    0      1     1
    1         0 0       1_____1
<< صفحه قبل 1 2 صفحه بعد >>

ارسال جواب

جوابت را با Markdown بنویس و ثبت کن

×
بستن