Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find the last item of a list

list1 = ['a','b','c']
print(list1[-1])

Source by www.techiedelight.com #
 
PREVIOUS NEXT
Tagged: #find #item #list
ADD COMMENT
Topic
Name
4+8 =