#!/usr/bin/python

# dictionaries are similar to hashes in perl or objects in javascript.  Robust
# key/value pair types.  denoted with curly braces '{', values are accessible
# with standard brackets:

dict = {}

dict[ 'hometown' ] = 'Chicago'
dict[ 'occupation' ] = 'Coder'

# note: keys can also be numbers if desired.

# access values from dictionary:
print( dict['hometown'] )

# print full dictionary
print( dict )

# print JUST keys:
print( dict.keys() )

# print JUST values:
print( dict.values() )

# Note: there is no guarantee of ordering in dictionaries

956e261047644ff5727e87dae73a0e00e8f89bbe
<mask token>

<mask token>
print(dict['hometown'])
print(dict)
print(dict.keys())
print(dict.values())

dict = {}
dict['hometown'] = 'Chicago'
dict['occupation'] = 'Coder'
print(dict['hometown'])
print(dict)
print(dict.keys())
print(dict.values())

#!/usr/bin/python

# dictionaries are similar to hashes in perl or objects in javascript.  Robust
# key/value pair types.  denoted with curly braces '{', values are accessible
# with standard brackets:

dict = {}

dict[ 'hometown' ] = 'Chicago'
dict[ 'occupation' ] = 'Coder'

# note: keys can also be numbers if desired.

# access values from dictionary:
print( dict['hometown'] )

# print full dictionary
print( dict )

# print JUST keys:
print( dict.keys() )

# print JUST values:
print( dict.values() )

# Note: there is no guarantee of ordering in dictionaries
