Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dictionary comprehension python

square_dict = {num: num*num for num in range(1, 11)}
Source by www.datacamp.com #
 
PREVIOUS NEXT
Tagged: #dictionary #comprehension #python
ADD COMMENT
Topic
Name
6+5 =