The last item · Item terakhir
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Halaman ini memerlukan browser terbaru (dengan dukungan SharedArrayBuffer). Silakan perbarui Chrome, Edge, Firefox, atau Safari ke versi terbaru.
This one builds on a lesson you haven't finished yet. Do that lesson first: · Yang ini bergantung pada pelajaran yang belum Anda selesaikan. Kerjakan pelajaran itu terlebih dahulu:
Python Basics · Functions · Fungsi →
English
The last item
A list keeps items in order. xs[-1] is the last one.
Bahasa Indonesia
Item terakhir
Sebuah list menyimpan item secara berurutan. xs[-1] adalah item yang terakhir.
Complete last(xs): return the last item of the list xs. Hint: xs[-1]. · Lengkapi last(xs): kembalikan item terakhir dari daftar xs. Petunjuk: xs[-1].
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.