382
Subscribers
No data24 hours
-47 days
+830 days
Posts Archive
382
الدالة print في بايثون بنستخدمها في اننا نطبع النصوص أو القيم.
اهم شي تكون بين علامات تنصيص "" .
مثال:
print("Hello, Ahmed")
النتيجه الي هتطلع هيا :
Hello, Ahmed
مثال لما تيجي تطبع قيم أو نتائج عمليات حسابية :
n1 = 5
n2 = 10
print("The sum of n1 and n2 is:", n1 + n2)
والنتيجة هتكون كدا :
The sum of n1 and n2 is: 15
الدالة print بتسمح بطباعة أكتر من قيمة أو نص باستخدام فواصل382
حملو البرنامج الي هنشتغل بيه كمان شويه
https://play.google.com/store/apps/details?id=ru.iiec.pydroid3
جماعه ال pc هتحملوا
python من موقعهم الرسمي
python.org
و تختار النسخه الي هتناسب جهازك
382
↫︙تشغيل كود بايثون
# Requier Modules
import subprocess, sys
#Subproccess run Python Code
PythonCode = "print('Hi Is Rad')" # Python Code
Process = subprocess.run(
args=[sys.executable, '-c', PythonCode], capture_output=True, text=True) # Excute Python Code
#Result
StdOut , StdErro = Process.stdout, Process.stderr
@F_V_E_Y
382
import telebot
from telebot import apihelper
# Your bot's unique token
TOKEN = input(". TYPE your token : ")
bot = telebot.TeleBot(TOKEN)
def get_bot_info():
try:
bot_info = bot.get_me()
info = f"ℹ️ Bot Info ℹ️\n\n"
info += f" Bot Name: {bot_info.first_name}\n"
info += f"🆔 Bot ID: {bot_info.id}\n"
info += f" Bot Username: @{bot_info.username}\n"
info += f" Bot Language: {bot_info.language_code}\n"
return info
except apihelper.ApiTelegramException as e:
return f"❌ Error: Invalid bot token - {e}"
if __name__ == "__main__":
print(get_bot_info())
- info Bot()
-
@CO_DE_X
382
382
اصنع أدوات وانشرها علي github ?
- make Tools and publish it in Github?
382
- الحَقيقة أن الطَريقة الوَحيدة لِلبقاء هي اللامُبالاة بالأشياء التي نَكرهُها والتي تُزعجُنا في البشر والعالم. 📌
382
try:
from art import *
from art import FONT_NAMES as all
except Exception as e:
print(type(e).__name__)
class ALEX():
def __init__(self):
self.name = input("[ - ] Enter Your Name : ")
print("_"*65)
self.LoL(self.name)
print("_"*65)
def LoL(self,text):
with open("Logo.txt", 'w', encoding='utf-8') as file:
for font in all:
Logo = text2art(text, font=font)
file.write(f"{Logo}\n\n")
print(Logo)
end = ALEX()
- Simply code For Logo Tools .
• Installing Lib
pip install art
- you can make it better . Share for more and react ❤️
-
@R_E_D_Z-
@CO_DE_X
