Smallest without min · Số nhỏ nhất mà không dùng min
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Trang này cần trình duyệt gần đây (hỗ trợ SharedArrayBuffer). Vui lòng cập nhật Chrome, Edge, Firefox hoặc Safari lên phiên bản mới nhất.
This one builds on a lesson you haven't finished yet. Do that lesson first: · Bài này dựa trên một bài học bạn chưa hoàn thành. Hãy làm bài đó trước:
Python Basics · Python Cơ bản · Functions · Hàm số →
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.
Tiếng Việt
Tìm số nhỏ nhất mà không dùng min
Trả về số nhỏ nhất trong danh sách mà không dùng hàm min.
Đây là bản phản chiếu của bài tập trước: bắt đầu từ phần tử đầu tiên và thay thế nó mỗi khi gặp một số nhỏ hơn.
Write smallest(nums) that returns the smallest number in the list, without using min. · Viết smallest(nums) trả về số nhỏ nhất trong danh sách, mà không sử dụng min.
Click Run to see the output here. · Nhấn Chạy để xem kết quả ở đây.