Similar, we can use the slice notation along with negative index to remove the last element. print(lst[-1]) # 4 ...
確定! 回上一頁