Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dictionary in python

dict = {"apple": "fruit", "ball": "object", "cricket": "sports"}

#how to print?

print(dict["cricket"])
 
PREVIOUS NEXT
Tagged: #dictionary #python
ADD COMMENT
Topic
Name
5+8 =