مشاركة حلول: عمل تطبيق للتقديم على المنح scholarship program

age = input()
age = int(age)
if age == 15:
print(‘You are too young’)
elif age == 25:
print(‘You are too old’)
elif age == 20:
print(‘Welcome to Egypt scholarship program’)

عمل جميل يا dewofrose
ملاحظة بسيطة: البرنامج لا يعمل لأنك لم تحدد قيمة age لو اضفت هذا السطر

age = input()

سيشتغل البرنامج جيدا
بالتوفيق

1 Like

عمل جميل يا safaa

1 Like

عمل جميل يا aseelyaser

1 Like

age = raw_input("Enter your age: ")
age = int(age)
if age < 18:
print (“You are too young”)
elif age > 22:
print (“You are too old”)
else:
print (“Welcome to Egypt scholarship program”)

2 Likes

عمل جميل يا Abdulaziz
لو ممكن تقوم بتنسيق الكود حسب الرابط

1 Like

إن شاء الله

2 Likes
age=int(input("enter your age"))
if age==15:
       print("you are too young")     
if age==25:
       print("You are too old")
elif age==20:
       print("Welcome to Egypt scholarship program")
1 Like

عمل جيد (قمت أيضا بتنسيق الأكواد… بإمكانك الإطلاع على التعديلات)

فقط لو تستطيعي تعديل البرنامج ليتعامل مع منهم أصغر أو يساوي من سن 15، وأكبر من سن 25، وبينهما

الاجابة:

age = input()
age = int(age)

if age < 18:
    print("You are too young")
elif age > 22:
    print("You are too old")
else:
    print("Welcome to Egypt scholarship program")
2 Likes

عمل جميل يا MSabry.

1 Like
print('Scholarship Programing')

age=input('enter your age :  ')
age=int(age)
print(age)

if age <= 15 :
    print('You are to young')

elif age >= 25 :
    print('You are to old')

elif age <= 20 :
    print('Welcom to Egypt Scholarship Programing')

Capture

1 Like

تطبيق للتقديم على المنح scholarship program

age = input()
if age < '18':
    print('You are too young')
elif age > '22':
    print('You are too old')
else:
    print('Welcome to Morocco scholarship program')
2 Likes

عمل جميل يا Souf

2 Likes
age = input()
age = int(age)
if age < 18:
   print('You are too young')
elif age > 22:
   print('You are too old')
elif age == 20:
   print('Welcome to Egypt scholarship program')
1 Like

عمل جيد يا اسيل… فقط بدلا من السطر:

elif age == 20:

ستحتاجي لاستعمال else لكي يصبح معنى الكود

  • إذا أصغر من 18 ، أو أكبر من 22 فالنتيجة غير مقبول
  • غير هذا (else) فالنتيجة مقبول
1 Like

age = input()
age = int(age)

if age == 15:
print(‘You are too young’)
if age == 25:
print(‘You are too old’)
if age == 20:
print(‘Welcome to Egypt scholarship program’)

1 Like

عمل تطبيق التقديم

age = input('Enter your name:')

age = int(age)

if age == 15:
    print('You are too young')
elif age == 25:
    print('You are too old')
elif age == 20:
    print('Welcome to Egypt scholarship program')
else:
    print('not available')
1 Like
# Online Python compiler (interpreter) to run Python online.
# Write Python 3 code in this online editor and run it.

age = int(input("Enter your Age: "))

if age<18:
    print("Sorry, are ineligible to to apply because you didn't meet the minimum age reqired!")
elif age>22:
    print("Sorry, you can't apply to this scolarship as your age exceeds the maximum age requirement")
else:
    print("Welcome to Yemen scholarships portal :D, Press accept policies to continue")
1 Like

عمل جيد، لكن المفترض أن تسمح بين كلاً من العمر 15 و 25 وليس العمر نفسه بالتحديد (استعمل أكبر من وأصغر من)