>>> list1 = [1, 2, 3, 4, 5]
>>> print(list1[len(list1)-1])
5
>>> print(list1[-1])
5
>>> print(list1.pop())
5
>>>
For further actions, you may consider blocking this person and/or reporting abuse
>>> list1 = [1, 2, 3, 4, 5]
>>> print(list1[len(list1)-1])
5
>>> print(list1[-1])
5
>>> print(list1.pop())
5
>>>
For further actions, you may consider blocking this person and/or reporting abuse
Mohammad Jawad (Kasir) Barati -
Prakhar Khandelwal -
Tom J. -
SameX -
Top comments (0)