arabipython | Unsorted

Telegram-канал arabipython - بايثون - Python Language

18613

أول مجتمع عربي على تلغرام متخصص في لغة البايثون قوانين القروب https://t.me/arabipython/64002 مصادر عربية لتعلم بايثون: ‏https://abotyim.github.io/Learn-Python-Arabic/ قناة المجموعة: @PythonAr جانغو بالعربي: @DjangoPython FastAPI بالعربي @FastAPIar

Subscribe to a channel

بايثون - Python Language

ايوه
حقك صحيح اذا كان طلب العكس.

int x[3][2] = {{1, 1}, {2, 2}, {3, 3}};

Читать полностью…

بايثون - Python Language

هو صحيح واذا خطأ وش تصحيح

Читать полностью…

بايثون - Python Language

يا اخوان احد بيدرس عند الأستاذ إبراهيم عادل في اليوتيوب؟

Читать полностью…

بايثون - Python Language

القروب مخصص للبايثون فقط؟

Читать полностью…

بايثون - Python Language

اطرح مشكلتك والي بيعرف يساعدك

Читать полностью…

بايثون - Python Language

لازم منصات دعم توفر api

Читать полностью…

بايثون - Python Language

تبغا كورسات http؟
يعني ادوات قـ/ـرصنه ولا عـادي؟

Читать полностью…

بايثون - Python Language

ليش بس ١٠ اشخاص متفاعلين👀

Читать полностью…

بايثون - Python Language

و اي شخص يبي برنامج بواجهه Gui فريم tk موجود

Читать полностью…

بايثون - Python Language

تحميل قائمة تشغيل من اليوتيوب بواسطة pytube

Читать полностью…

بايثون - Python Language

مين يعرف ليه يطلع ايرر

Читать полностью…

بايثون - Python Language

سلام عليكم ممكن أحد يفهم في المواقع الاكترونية وhtml

Читать полностью…

بايثون - Python Language

إذا مافي حرف j بالإسم يطبعه واذا في حرف j بالاسم يوقف اللوب

Читать полностью…

بايثون - Python Language

احد فاهم في الويب ( django) ممكن يجيني

Читать полностью…

بايثون - Python Language

ابصم ب الخمس انك ترد على الناس وانت مغمض

Читать полностью…

بايثون - Python Language

int x[2][3] = {{1, 1, 1}, {2, 2, 2}};

Читать полностью…

بايثون - Python Language

import time
import os

dollar = """
====================================================================
//$\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\//$\\
(100)==================| FEDERAL RESERVE NOTE |================(100)
\\$// ~ '------========--------' \\$//
<< / /$\ // ____ \\ \ >>
>>| 12 //L\\ // ///..) \\ L38036133B 12 |<<
<<| \\ // < >\ |>>||
>>| \$/ $$ --/ One Hundred |<<
====================================================================>||
//$\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\//$\\<||
||(100)==================| FEDERAL RESERVE NOTE |================(100)>
\\$// ~ '------========--------' \\$//\||
<< / /$\ // ____ \\ \ >>)||
||>>| 12 //L\\ // ///..) \\ L38036133B 12 |<</
<<| \\ // < >\ |>>=
>>| \$/ $$ --/ One Hundred |<<
<<| L38036133B *\\ |\_/ //* series |>>
>>| 12 *\\/___\_//* 1989 |<<
<<\ Treasurer __/Franklin\____ Secretary 12 />>
//$\ ~|UNITED STATES OF AMERICA|~ /$\\
(100)=================== ONE HUNDRED DOLLARS =================(100)
\\$//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\$//
====================================================================
"""

exchang_rates = {
"": dollar,
"USD": 1.0,
"EUR": 0.85,
"EGP": 30.9,
"RMB": 6.5,
}

def clear_screen():
os.system("cls" if os.name == "nt" else "clear")

def display_rates():
print("Welcome to 'Currency Converter:\n'")
for currency in exchang_rates:
print(f"{currency}: {exchang_rates[currency]}")

def currency_converter():
clear_screen()
display_rates()

from_currency = input("\nChoose a currency to convert from: ").upper()
while True:
amount = float(input("Enter the amount: "))
confirmation = input(f"\nYou entered {amount} {from_currency}. Confirm (y/n): ").upper()
if confirmation == "Y":
break

clear_screen()
display_rates()
to_currency = input("\nChoose to convert to: ").upper()
print("Analyzing your request... please wait.")
time.sleep(2)
print(f"Checking for {to_currency}'s best available.... Please wait")
time.sleep(2)
print(f"Getting a discount price for {from_currency}..... Please wait")

if from_currency not in exchang_rates or to_currency not in exchang_rates:
print("Invalid currency. Conversion canceled.")
time.sleep(2)
return

new_rate = exchang_rates[to_currency] / exchang_rates[from_currency]
converted_amount = amount * new_rate
clear_screen()
print(f"Preparing the deal from {from_currency} to {to_currency}... Please wait\n")
time.sleep(2)
print(f"Exchange Rate: 1 {from_currency} = {new_rate} {to_currency}")
time.sleep(2)
print(f"{amount} {from_currency} is equal to {round(converted_amount, 2)} {to_currency}")

accept_transaction = input(f"\nDo you want to perform another conversion (y/n): ").upper()
if accept_transaction == "Y":
print("Transaction Successful!")
else:
print("Transaction Canceled!")

another_conversion = input("\nDo you want to perform another conversion (Y/N): ").upper()
if another_conversion == "Y":
display_rates()
currency_converter() # إعادة استدعاء الدالة للبدء من جديد
else:
print("Thanks for using the currency converter")

currency_converter()

Читать полностью…

بايثون - Python Language

import time
import os
dollar = """
====================================================================
//$\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\//$\\
||(100)==================| FEDERAL RESERVE NOTE |================(100)||
\\$// ~ '------========--------' \\$//
<< / /$\ // ____ \\ \ >>
||>>| 12 //L\\ // ///..) \\ L38036133B 12 |<<||
||<<| \\ // < >\ || |>>||
||>>| \$/ $$ --/ One Hundred |<<||
====================================================================>||
//$\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\//$\\<||
||(100)==================| FEDERAL RESERVE NOTE |================(100)>
\\$// ~ '------========--------' \\$//\||
<< / /$\ // ____ \\ \ >>)||
||>>| 12 //L\\ // ///..) \\ L38036133B 12 |<</
||<<| \\ // < >\ || |>>=
||>>| \$/ $$ --/ One Hundred |<<||
||<<| L38036133B *\\ |\_/ //* series |>>||
||>>| 12 *\\/___\_//* 1989 |<<||
<<\ Treasurer ____/Franklin\______ Secretary 12 />>
||//$\ ~|UNITED STATES OF AMERICA|~ /$\\||
(100)=================== ONE HUNDRED DOLLARS =================(100)
\\$//\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\$//
====================================================================
"""
exchang_rates = {
"": dollar,
"USD": 1.0,
"EUR": 0.85,
"EGP": 30.9,
"RMB": 6.5,
}
def clear_screan ():
os.system ("cls" if os.name == "nt" else "clear")

def display_rates ():
print ("Welcome to'Currency Cunverter:\n'")
for currency in exchang_rates:
print (f"{currency}: {exchang_rates [currency]}")
### يعني اذا كسرت اللوب ماراح يحفظ لك واذا ما كسرتها يحفظ لك وينزل تحت ويكمل
def currency_converter():
clear_screan ()
display_rates ()

from_currency = input ("\n Choose a currency to convert from: ").upper ()
while True:
amount = float (input ("Enter the amount:"))
confirmatoin = input (f"\n you entered {amount} {from_currency}. confirm (y/n)").upper ()
if confirmatoin == "y":
break
clear_screan ()
display_rates ()
to_currency = input ("\n Chooce to convert to: ").upper ()
print ("Analyzing your request...please wait.")
time.sleep (2)
print (f"checking for {to_currency}'s best available....Please wait")
time.sleep (2)
print (f"Getting a discount price for {from_currency}.....Please wait")

if from_currency not in exchang_rates or to_currency not in exchang_rates:
print ("Invalid currincy. Conversoin canceled")
time.sleep (2)

#### سعر المحول اليه
#### ----------- = سعر التغيير
#### سعر المحول منه
new_rate = exchang_rates [to_currency]/exchang_rates [from_currency]
converted_amount = amount * new_rate
clear_screan ()
print (f"preparing the deal from {from_currency} to {to_currency}...Please wait\n")
time.sleep (2)
print (f"Exchange Rate: 1 {from_currency} = {new_rate} {to_currency}")
time.sleep (2)
print (f"{amount} {from_currency} is equal to {round(converted_amount, 2)} {to_currency}")


accept_transaction = input (f"\n you want to perform another conversion (y/n):").upper()
if accept_transaction == "y":
print ("Transaction Successful!")
else:
print ("Transaction Canceled!")

anoter_conversion = input ("\n Do you want to perform another conversion (Y/N):").upper ()
if anoter_conversion == "y":
display_rates ()
else:
print ("Thanks for using the currency converter")

currency_converter()

Читать полностью…

بايثون - Python Language

الكود شغال لين break واللي تحت ما بيشتغل

Читать полностью…

بايثون - Python Language

يا اخوان اذا احد يعرف في بايثون ياليت يجيني خاص عندي مشكلة في مسألة

Читать полностью…

بايثون - Python Language

يا اخوان احد يعرف برامج بالبايثون تزود متابعين تيك توك او تزود لايكات ؟

Читать полностью…

بايثون - Python Language

ياخوي ارسل شنو مشكلتك والي يعرف يساعدك

Читать полностью…

بايثون - Python Language

wave = lambda txt : [txt[:i] + txt[i].capitalize() + txt[i+1:] for i in range(len(txt))]

في كمان حلول ثانية موجودة في القناة

Читать полностью…

بايثون - Python Language

سلام عليكم اي شخص يبي شرح عن شي او مشكله بالكود يرسلي بحلها له💙

Читать полностью…

بايثون - Python Language

صور الكود عشان نعرف حق شنو استخدامك

Читать полностью…

بايثون - Python Language

مافي اي مشكله انت شغال عدل

Читать полностью…

بايثون - Python Language

مافي مشكلة
هي الواجهة الافتراضية تبع الجانغو

Читать полностью…

بايثون - Python Language

ابغا خصوصي python يشرح لي اونلاين

Читать полностью…

بايثون - Python Language

السَلٱمٌ عـَلـْيگمّ-ۈرحـْمّـٌة ٱللـّہ ﯙبُرگـّاتہ

Читать полностью…

بايثون - Python Language

بايثون سهلة اتعلمها بشكل مستمر

Читать полностью…
Subscribe to a channel