أول مجتمع عربي على تلغرام متخصص في لغة البايثون قوانين القروب https://t.me/arabipython/64002 مصادر عربية لتعلم بايثون: https://abotyim.github.io/Learn-Python-Arabic/ قناة المجموعة: @PythonAr جانغو بالعربي: @DjangoPython FastAPI بالعربي @FastAPIar
ايوه
حقك صحيح اذا كان طلب العكس.
int x[3][2] = {{1, 1}, {2, 2}, {3, 3}};
يا اخوان احد بيدرس عند الأستاذ إبراهيم عادل في اليوتيوب؟
Читать полностью…تبغا كورسات http؟
يعني ادوات قـ/ـرصنه ولا عـادي؟
و اي شخص يبي برنامج بواجهه Gui فريم tk موجود
Читать полностью…تحميل قائمة تشغيل من اليوتيوب بواسطة pytube
Читать полностью…سلام عليكم ممكن أحد يفهم في المواقع الاكترونية وhtml
Читать полностью…إذا مافي حرف j بالإسم يطبعه واذا في حرف j بالاسم يوقف اللوب
Читать полностью…ابصم ب الخمس انك ترد على الناس وانت مغمض
Читать полностью…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()
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()
الكود شغال لين break واللي تحت ما بيشتغل
Читать полностью…يا اخوان اذا احد يعرف في بايثون ياليت يجيني خاص عندي مشكلة في مسألة
Читать полностью…يا اخوان احد يعرف برامج بالبايثون تزود متابعين تيك توك او تزود لايكات ؟
Читать полностью…wave = lambda txt : [txt[:i] + txt[i].capitalize() + txt[i+1:] for i in range(len(txt))]
في كمان حلول ثانية موجودة في القناة
سلام عليكم اي شخص يبي شرح عن شي او مشكله بالكود يرسلي بحلها له💙
Читать полностью…مافي مشكلة
هي الواجهة الافتراضية تبع الجانغو
السَلٱمٌ عـَلـْيگمّ-ۈرحـْمّـٌة ٱللـّہ ﯙبُرگـّاتہ
Читать полностью…