DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
initialize a dict from list
dict.fromkeys(["key1", "key2", "key3"], "value") {'key1': 'value', 'key2': 'value', 'key3': 'value'}
PREVIOUS
NEXT
Tagged:
#initialize
#dict
#list
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit