Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dict pop with index python

d = {'s':0, 'e':1, 't':6}
del d[next(iter(d))]
print(d)

# This outputs:
{'e': 1, 't': 6}
 
PREVIOUS NEXT
Tagged: #dict #pop #index #python
ADD COMMENT
Topic
Name
8+2 =