DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
dict comprehension python
keys=['var1','var2','var3'] my_dict={key:np.zeros(10) for key in keys}
Source by www.datacamp.com #
PREVIOUS
NEXT
Tagged:
#dict
#comprehension
#python
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit