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

مرحباً جميعاً

المهمة المطلوبة

بإمكانك الإطلاع على المهمة المطلوبة من هنا

كيفية كتابة الأكواد في المنتدى

  • إذا كان لديك كيبورد فرنسي, اضغط على alt gr و 7 لكتابة الرمز `

4 Likes

مهمة عمل تطبيق التقديم على المنح

#-_- :)
age = input("your age:")
age = int(age)

if age < 18:
    print("You are too young")
elif  age <= 22:
    print("Welcome to Egypt scholarship program")
elif age >= 23:
    print("You are too old")
else:
    print("oops! You have a problem")
4 Likes

Good work @kaabi_otman :ok_hand:
I did some modifications :blush:

age = input("your age:  ") # I made some space here to looks the message more better
age = int(age) 

print(age) # you can do :  print to see the age that user put it

if age < 18: 
    print("You are too young") 
elif age <= 22: 
    print("Welcome to Egypt scholarship program") 
else: # you can write this line instead of the lines I commited 
    print("you are too old")

#elif age >= 23: 
    #print("You are too old") 
#else: 
    #print("oops! You have a problem")
5 Likes

@Nabila هههه اظن انني عقدت الامور بعض الشيء شكرا لك :heart_eyes:

2 Likes

You’re welcome :blush: @kaabi_otman
أحسنت واصل
أهم شيء هي الأساسيات و عليها نبني الباقي :heart:

3 Likes
def Scholarship():
    try:
        age = input("Enter your age:")
        age = int(age)
        if age < 18:
            print("You are too young")
        elif age <= 22:
            print("Welcome to Jordan scholarship program")
        else:
            print("You are too old")
    except ValueError:
        Scholarship()
Scholarship()
4 Likes

Nice work @yahya-alshammout :heart_eyes:
With method && exception :clap::ok_hand:

2 Likes

thanx
@Nabila :tulip:

2 Likes

@yahya-alshammout رائع :heart_eyes: :+1: :ok_hand:

4 Likes

شكراً لك يا صديقي :grinning:

3 Likes
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

استاذ ممطن تكتبلي طريقة كتابة الكود لاني ما فهمتها على الفيديو

2 Likes

مرحبا @saraweb . جربي تغير اللغة الى الفرنسية ثم قومي بالضغط علىalt gr و على الرقم 7 اعلى لوحة المفاتيح

عوضي الرقم 3 بالرقم 7

3 Likes

شكرررررررررررررررا لك :star_struck::star_struck:

3 Likes

شكرا على مشاركتك . عمل رائع حقيقة :star_struck:

3 Likes

السلام عليكم ورحمة الله وبركاته
هذه اجابتي
age = input(“Please, Enter your age?”)

age =int (age)

if age &lt;18:

print("Sorry, You are too young!")

elif age &gt;22:

print("Opps, You are too old!!!")

else:

print ("Welcome to Egypt scolarship program....")
2 Likes

@The_programmer لم لا يعمل هذا الكود عندي:

3 Likes

مرحبا @The_programmer
بايثون تستعمل الرموز للأكبر واصغر من ليس مثل HTML
استبدل

$lt; الى <

و

$gt; الى >

2 Likes

ليس لي هدا الكود بل هو ل @The_programmer وانا لا اعلم ان كانت قد جربته قبل طرحه ام لا فانا اعلم مسبقا لم لا يعمل

@ahmedalrifai :+1: :ok_hand:

3 Likes

اها اوك اسف على هذا :sweat_smile:

3 Likes