اي نسيت اعمل not
1 Like
age = int(input('Enter your age'))
if age > 22:
print('You are too old')
elif age < 18:
print('You are too young')
else:
print('Welcome to Syrian scholarship program')
1 Like
مهمة عمل تطبيق للتقديم علي المنح
age = input()
if age == '20':
print('Welcome to Egypt scholarship program')
elif age == '15':
print('You are too young')
elif age == '25':
print('You are too old')
1 Like
age = int(input())
if age <18:
print('you are very young')
elif age >22:
print('you are very old')
else:
print('wlecome to Egypt scholarship program')
1 Like
age = input("your age is:")
age = int(age)
if age < 18:
print("You are too young")
elif age > 22:
print("You are too old")
elif age <= 22:
print(" You Are Welcome to Egypt scholarship program")
else:
print("sorry, something went wrong. please, try again")
```
اجابتي :
name = input("Please,Enter your Name: ")
age = input("How old are you?: ")
age =int(age)
if age >= 18 and age <=22:
print ("welcome",name," to CORETABS.net back-end program...")
if age < 18 :
print("Sorry ",name,"you are too young")
if age > 22:
print("Sorry",name," you are too old ")
1 Like
عمل جميل يا hichambq
1 Like
مهمة عمل برنامج للتقديم على المنح الطلابية للجامعات.
بحيث الطالب يجب أن يكون عمر بين 18 و 22 ليكون مؤهل للحصول على المنحة
name = input()
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' , name)
عمل جميل يا hedraatia2020
name = raw_input("whats your name? ")
age = int(input("whats your age? "))
if age <= 15:
print("you are too young")
elif age >= 25:
print("you are too old")
else:
print("Welcome to Egypt scholarship program")
def apply():
name = raw_input("whats your name? ")
age = int(input("whats your age? "))
if age <= 15:
print("you are too young")
elif age >= 25:
print("you are too old")
else:
print("Welcome to Egypt scholarship program")
def applyLoop(num):
for x in range(0,num):
apply()
applyLoop(5)
print("done from first example.")
applyLoop(1000)
1 Like
طريقة رائعة بالتحكم بالـ range باستخدام متغير num داخل الدالة
حاولت اسويه بطريقتي بس عيا
age= int(age)
if age<18:
print('You are too young')
elif age<=22:
print('Welcome to Egypt scholarship program')
elif age>22:
print('You are too old') ```
2 Likes
طلع ناقص سطر
age= int(age)
if age<18:
print('You are too young')
elif age<=22:
print('Welcome to Egypt scholarship program')
elif age>22:
print('You are too old')
2 Likes
age=input() x=int(age) if(x>22): print('You are too old') elif(x<18): print('You are too young') else: print('Welcome to Syrian Scolarship Program')
2 Likes
2 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
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