DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+7 =
Submit