The last item · 最后一项
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 · Python 基础 · Functions · 函数 →
English
The last item
A list keeps items in order. xs[-1] is the last one.
中文
最后一项
列表按顺序存放元素。xs[-1] 就是最后一个。
Complete last(xs): return the last item of the list xs. Hint: xs[-1]. · 完成 last(xs):返回列表 xs 的最后一项。提示:xs[-1]。
Click Run to see the output here. · 点击“运行”查看此处输出。