مرحباً جميعاً
المهمة المطلوبة
بإمكانك الإطلاع على المهمة المطلوبة من هنا
كيفية كتابة الأكواد في المنتدى
- إذا كان لديك كيبورد فرنسي, اضغط على alt gr و 7 لكتابة الرمز `
بإمكانك الإطلاع على المهمة المطلوبة من هنا
مهمة عمل تطبيق التقديم على المنح
#-_- :)
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")
Good work @kaabi_otman
I did some modifications
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")
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()
شكراً لك يا صديقي
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")
استاذ ممطن تكتبلي طريقة كتابة الكود لاني ما فهمتها على الفيديو
مرحبا @saraweb . جربي تغير اللغة الى الفرنسية ثم قومي بالضغط علىalt gr و على الرقم 7 اعلى لوحة المفاتيح
عوضي الرقم 3 بالرقم 7
شكرررررررررررررررا لك
شكرا على مشاركتك . عمل رائع حقيقة
السلام عليكم ورحمة الله وبركاته
هذه اجابتي
age = input(“Please, Enter your age?”)
age =int (age)
if age <18:
print("Sorry, You are too young!")
elif age >22:
print("Opps, You are too old!!!")
else:
print ("Welcome to Egypt scolarship program....")
مرحبا @The_programmer
بايثون تستعمل الرموز للأكبر واصغر من ليس مثل HTML
استبدل
$lt; الى <
و
$gt; الى >
ليس لي هدا الكود بل هو ل @The_programmer وانا لا اعلم ان كانت قد جربته قبل طرحه ام لا فانا اعلم مسبقا لم لا يعمل
اها اوك اسف على هذا