DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
remove first item form dictionary python
(k := next(iter(d)), d.pop(k)) which will return and remove the leftmost (first) item if it exists
PREVIOUS
NEXT
Tagged:
#remove
#item
#form
#dictionary
#python
ADD COMMENT
Topic
COMMENT
Name
7+2 =
Submit