Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

creating dictionary using the keys

#creating a dictionary using the keys
d1=dict.fromkeys((1,7,6,5,8,9),'present')
print(d1)
d1[15]='absent'
print(d1)
 
PREVIOUS NEXT
Tagged: #creating #dictionary #keys
ADD COMMENT
Topic
Name
5+7 =