Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dict comprehension

# Dictionary comprehension

{i:i*2 for i in range(10)}
Source by docs.python.org #
 
PREVIOUS NEXT
Tagged: #dict #comprehension
ADD COMMENT
Topic
Name
5+9 =