# dictionaries are kind of hash-table type.
# They work like associative arrays or
# hashes found in Perl and consist of key-value pairs

dict = {}
dict["One"] = " this is one"
dict[2] = "this is two"
tinydict = {"name": "john","code":6734, "dept": "sales"}
#print (dict["one"]) # Prints value for 'one' key
print (dict[2])            # Prints value for 2 key
print (tinydict)           # Prints complete dictionary
print (tinydict.keys())    # Prints all the keys
print (tinydict.values())  # Prints all the values