Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dictionary accessing an element

IN PYTHON 
unlike javascript don't use . operator to create/assign dic. keys to value
use dic[key] syntax not dic.key(like java script)

NOTE:
in pythyon oops we only use  . operator to access methods and attributes
and to even access using reference variable like head in linkedlist
Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #python #dictionary #accessing #element
ADD COMMENT
Topic
Name
8+6 =