يعني انا الفتره الاخيره كنت بحاول اتعلم البايثون وكل الشفتو هو فديو خمس ساعات علي اليوتيوب بس هجرب احلها
دلوقتي احنا عوزين لو هوا طالب او تحت ال 22 سنه ياخد الخصم
هتبق كد
age = int(input("how old are you? "))
student = input("are you student (yes or no)? ")
fees = 500
# بنحول كلمة الطالب لحروف صغيرة عشان لو كتب Yes تبقى yes
if age <= 22 or student.lower() == "yes":
fees = fees * 0.5
print(fees, "applied discount 50%")
else:
print(500)
2026-08-26 15:25:43
0
To see more videos from user @mahaothmantech, please go to the Tikwm
homepage.