Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if is the last element in list python

if x == my_list[-1]:
    # do what you want
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #element #list #python
ADD COMMENT
Topic
Name
4+2 =