DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
destructuring for dict in python
from operator import itemgetter params = {'a': 1, 'b': 2} a, b = itemgetter('a', 'b')(params)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#destructuring
#dict
#python
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit