Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

access last element of list python

MyList=["Black","Blue","Red","Green"]
print(MyList[-1])
 
PREVIOUS NEXT
Tagged: #access #element #list #python
ADD COMMENT
Topic
Name
7+6 =