Pass or fail · نجاح أو رسوب
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · تحتاج هذه الصفحة إلى متصفح حديث (يدعم SharedArrayBuffer). يرجى تحديث Chrome أو Edge أو Firefox أو Safari إلى أحدث إصدار.
This one builds on a lesson you haven't finished yet. Do that lesson first: · هذا يعتمد على درس لم تكمله بعد. قم بذلك الدرس أولاً:
Python Basics · أساسيات بايثون · Making decisions · اتخاذ القرارات →
English
Pass or fail
mark is 47. Print pass when the mark is 50 or more, and fail otherwise.
else catches everything the if did not. It takes no condition of its own — just else: — and its own indented line underneath.
العربية
ناجح أو راسب
mark هو 47. اطبع pass عندما تكون الدرجة 50 أو أكثر، وfail غير ذلك.
else يلتقط كل ما لم يلتقطه الـ if. لا يأخذ أي شرط خاص به — فقط else: — وسطره المنسحب الخاص تحته.
mark is 47. Print pass when the mark is 50 or more, and fail otherwise. · mark هو 47. اطبع pass عندما تكون الدرجة 50 أو أكثر، وfail غير ذلك.
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.