Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python accessing a value in dictionary

alien = {'color': 'green', 'points': 5}
print("The alien's color is " + alien['color'])
Source by nostarch.com #
 
PREVIOUS NEXT
Tagged: #python #accessing #dictionary
ADD COMMENT
Topic
Name
3+7 =