حل مهمة التقديم للمنح
age=int(input('Enter your age '))
if age >= 22:
print('You are too old ')
elif age > 18:
print('Welcome to Egypt scholarship')
else:
print('You are too young ')
حل مهمة التقديم للمنح
age=int(input('Enter your age '))
if age >= 22:
print('You are too old ')
elif age > 18:
print('Welcome to Egypt scholarship')
else:
print('You are too young ')
عمل رائع queen1.
age =input('Enter your age')
age =int(age)
if age<18:
print('you are too young')
elif age<=22:
print('welcome to Egypt scolarship program')
else:
print('you are too old')
عمل جميل جدا arijtrabelsi.
main.py
#FadiRustom
msg_small='You are too young'
msg_large='You are too old'
msg='Welcome to Egypt scholarship program'
age= input()
age= int(age)
if age < 18:
print(msg_small)
elif age > 22:
print(msg_large)
else:
print(msg)
# FadiRustom
msg_small='You are too young'
msg_large='You are too old'
msg='Welcome to Egypt scholarship program'
age=int( input (Enter age: ) )
if age < 18:
print(msg_small)
elif age > 22:
print(msg_large)
else:
print(msg)
عمل رائع يا اخي FadiRustom
هناك خطا مطبعي بسيط في المحاولة الثانية و هو انك لم تضع علامات تنصيص لكلمة Enter age:.
بالتوفيق
age=input()
age=int(age)
if age == 18:
print ("you are young")
elif age == 22:
print ("you are old")
elif age >18 and age <22:
print ("welcome in Egypt")
else :
print("your Age not valuable")
عمل رائع يا أميرة…
لكن يفترض أن يقوم البرنامج بالتحقق إذا كان العمر أصغر من 18 وليس يساوي 18
نفس الأمر مع عمر 22 (يجب أن يكون أكبر من 22 وليس يساوي)
ما اخدتش بالي من النقطه دى هعدله ياذن الله شكرا لك استاذ ياسر
age=input()
age=int(age)
if age < 18:
print ("you are young")
elif age > 22:
print ("you are old")
elif age >18 and age <22:
print ("welcome in Egypt")
else :
print("your Age not valuable")
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”)
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 Yemen scholarship program')
كما هو متوقع يا أحمد منك، عمل رائع
age = int(input())
if age < 18:
print('You are too young')
elif age >22:
print("You are too old")
else:
print("Welcome to Egypt scholarship program")
عمل رائع يا نور الدين.
age=input()
age=int(age)
if age<18 :
print('You are too young')
elif age<=22:
print('Welcome to Egypt scholarship program')
else :
print('You are too old')
عمل جميل جدا يا بسام