Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to find the last element of list in python

data = ["infy", "tcs", "affle", "dixon", "astral"] 

last_element = data[-1]
print(last_element)
Source by www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #find #element #list #python
ADD COMMENT
Topic
Name
8+1 =