Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add a tuple to a dictionary python

from collections import defaultdict

d = defaultdict(list)
d[i].append((left, right))
 
PREVIOUS NEXT
Tagged: #add #tuple #dictionary #python
ADD COMMENT
Topic
Name
5+7 =