حل السؤال الثالث
list =[ ]
fail_list =[ ]
succes_list =[ ]
k=[ ]
sub1=int(input("Enter your degree in math: "))
sub2=int(input("Enter your degree in physics: "))
sub3=int(input("Enter your degree in computer: "))
sub4=int(input("Enter your degree in history: ") )
sub5=int(input("Enter your degree in english: ") )
sub6=int(input("Enter your degree in chemistry: "))
sub7=int(input("Enter your degree in arabic: "))
list.append(sub1)
list.append(sub2)
list.append(sub3)
list.append(sub4)
list.append(sub5)
list.append(sub6)
list.append(sub7)
k.append(sub1)
k.append(sub2)
k.append(sub3)
k.append(sub4)
k.append(sub5)
k.append(sub6)
k.append(sub7)
list.sort()
k.sort()
k[0]=k[0],"min degree"
k[-1]=k[-1],"max degree"
print(k)
for i in list :
if(i <= 49):
fail_list.append(i)
else:
succes_list.append(i)
print("successful", succes_list)
print("unsuccessful",fail_list)
السؤال الإضافي واجب
list =[ ]
fail_list =[ ]
succes_list =[ ]
k=[ ]
sub1=int(input("Enter your degree in math: "))
sub2=int(input("Enter your degree in physics: "))
sub3=int(input("Enter your degree in computer: "))
sub4=int(input("Enter your degree in history: ") )
sub5=int(input("Enter your degree in english: ") )
sub6=int(input("Enter your degree in chemistry: "))
sub7=int(input("Enter your degree in arabic: "))
list.append(sub1)
list.append(sub2)
list.append(sub3)
list.append(sub4)
list.append(sub5)
list.append(sub6)
list.append(sub7)
k.append(sub1)
k.append(sub2)
k.append(sub3)
k.append(sub4)
k.append(sub5)
k.append(sub6)
k.append(sub7)
list.sort()
k.sort()
k[0]=k[0],"min degree"
k[-1]=k[-1],"max degree"
print(k)
for i in list :
if(i <= 49):
fail_list.append(i)
else:
succes_list.append(i)
print("successful", succes_list)
print("unsuccessful",fail_list)
السؤال الإضافي واجب
حل السؤال الثالث بطريقة ثانية
k=[ ]
fail_list=[ ]
succes_list=[ ]
list =["math" , "physics","computer", "history","english","chemistry","arabic"]
for i in list:
if (i=="math"):
i=int(input("enter digree of the math"))
k.append(i)
if (i=="physics"):
i=int(input("enter digree of the physics"))
k.append(i)
if (i=="computer"):
i=int(input("enter digree of the computer"))
k.append(i)
if (i=="history"):
i=int(input("enter digree of the history"))
k.append(i)
if (i=="engliah"):
i=int(input("enter digree of the english"))
k.append(i)
if (i=="chemistry"):
i=int(input("enter digree of the chemistry"))
k.append(i)
if (i=="arabic"):
i=int(input("enter digree of the arabic"))
k.append(i)
list.clear()
k.sort()
for i in (k):
list.append(i)
k[0]=k[0],"min digree"
k[-1]=k[-1],"max digree"
print(k)
for i in (list):
if(i<50):
fail_list.append(i)
if(i>=50):
succes_list.append(i)
print(fail_list)
print(succes_list)
k=[ ]
fail_list=[ ]
succes_list=[ ]
list =["math" , "physics","computer", "history","english","chemistry","arabic"]
for i in list:
if (i=="math"):
i=int(input("enter digree of the math"))
k.append(i)
if (i=="physics"):
i=int(input("enter digree of the physics"))
k.append(i)
if (i=="computer"):
i=int(input("enter digree of the computer"))
k.append(i)
if (i=="history"):
i=int(input("enter digree of the history"))
k.append(i)
if (i=="engliah"):
i=int(input("enter digree of the english"))
k.append(i)
if (i=="chemistry"):
i=int(input("enter digree of the chemistry"))
k.append(i)
if (i=="arabic"):
i=int(input("enter digree of the arabic"))
k.append(i)
list.clear()
k.sort()
for i in (k):
list.append(i)
k[0]=k[0],"min digree"
k[-1]=k[-1],"max digree"
print(k)
for i in (list):
if(i<50):
fail_list.append(i)
if(i>=50):
succes_list.append(i)
print(fail_list)
print(succes_list)
Python | تعلم لغة بايثون
حل السؤال الثالث بطريقة ثانية k=[ ] fail_list=[ ] succes_list=[ ] list =["math" , "physics","computer", "history","english","chemistry","arabic"] for i in list: if (i=="math"): i=int(input("enter digree of the math")) k.append(i)…
🖍 سؤال اضافي ثاني : احنا أصلا قلنا في السؤال الثالث أنه في آخر خطوة يجب أن يقوم البرنامج بطباعة أسماء المواد التي نجح بها ويضعها في ليست معينة ويضع اسماء المواد التي رسب بها في ليست آخر ،
مع الدرجات طبعاً وليس الأسماء فقط .
والحل الذي تم إرساله على القناة يتضمن الدرجات فقط ..
برأيك كيف نستطيع حل هذه المشكلة😁
مع الدرجات طبعاً وليس الأسماء فقط .
والحل الذي تم إرساله على القناة يتضمن الدرجات فقط ..
برأيك كيف نستطيع حل هذه المشكلة😁
تقريباً احنا خلصنا 70% من دورة تعلم البرمجة بلغة Python
متبقي ثلاث مواضيع فقط وتكمل الدورة
هنتعرف عليهم بالدروس القادمة إن شاء الله .
لو أنت مبتدئ في مجال البرمجة علق ب(تم) واكتب رأيك بهذه الدورة كيف كانت معاك (سهلة أو صعبة)
متبقي ثلاث مواضيع فقط وتكمل الدورة
هنتعرف عليهم بالدروس القادمة إن شاء الله .
لو أنت مبتدئ في مجال البرمجة علق ب(تم) واكتب رأيك بهذه الدورة كيف كانت معاك (سهلة أو صعبة)
🔰 مراجعة موضوع الدوال :
🟢 الجزء الأول
https://youtu.be/tvuTb09Hp8k
🟢 الجزء الثاني
https://youtu.be/IsHTVD30psk
🟢 الجزء الثالث
https://youtu.be/8hvYO2cgnXQ
🟢 الجزء الرابع
https://youtu.be/30xW7WlNE_0
🟢 الجزء الخامس
https://youtu.be/nzY3H6kTrvA
🟢 الجزء السادس
https://youtu.be/hvuK9yg0mes
🟢 الجزء الأول
https://youtu.be/tvuTb09Hp8k
🟢 الجزء الثاني
https://youtu.be/IsHTVD30psk
🟢 الجزء الثالث
https://youtu.be/8hvYO2cgnXQ
🟢 الجزء الرابع
https://youtu.be/30xW7WlNE_0
🟢 الجزء الخامس
https://youtu.be/nzY3H6kTrvA
🟢 الجزء السادس
https://youtu.be/hvuK9yg0mes
موعدنا عبكرا إن شاء الله.
كم شخص جاهز للإمتحان
كم شخص جاهز للإمتحان
Anonymous Poll
43%
جاهز
23%
غير جاهز
34%
لم أصل إلى موضوع الدوال
🖍 السؤال الأول : ما فائدة إنشاء الدوال ؟ مع كتابة مثال برمجي يوضح هذه الفائدة .
🖍 السؤال الثاني : بأستخدام مفهوم الدوال اكتب برنامج الآلة الحاسبة مميزاتها (جمع-ضرب-طرح-قسمة-باقي القسمة- الأس-الجذر التربيعي) .
🖍 السؤال الثالث : وضح ما الفرق بين العملية print و return في الدوال
🖍 السؤال الرابع : وضح ما هي فائدة استخدام الدالة lambda بدلا من def