Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

last element in dictionary python

#Get last key of dict:
list(dict)[-1]

#Get last value of dict:
dict[list(dict.keys())[-1]]
 
PREVIOUS NEXT
Tagged: #element #dictionary #python
ADD COMMENT
Topic
Name
8+3 =