>>> 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
Cihat Salik -
Ashraf Ras -
Kenichiro Wada -
Aditya S Ray -
Top comments (0)