Answers for "how to get the last elemetn of a list in python"

0

get last item in array python

list = [1, 2, 3]
print(list[-1]) #prints 3
Posted by: Guest on March-11-2021

Code answers related to "how to get the last elemetn of a list in python"

Python Answers by Framework

Browse Popular Code Answers by Language