Smallest without min · الأصغر بدون دالة min
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 · أساسيات بايثون · Functions · الدوال →
English
Smallest without min
Return the smallest number in a list without using min.
It is the mirror image of the previous drill: start with the first item and replace it whenever you meet a smaller one.
العربية
الأصغر بدون min
أعد أصغر رقم في قائمة دون استخدام min.
إنها الصورة المرئية للتدريب السابق: ابدأ بالعنصر الأول واستبدله كلما واجهت قيمة أصغر.
Write smallest(nums) that returns the smallest number in the list, without using min. · اكتب smallest(nums) ترجع أصغر رقم في القائمة، دون استخدام min.
Click Run to see the output here. · اضغط تشغيل لرؤية المخرجات هنا.