# Create a dictionary using as the source data a tuple for # the key set and a corresponding list for the value set # Set up the sources for the keys (tuple) and the values # (list) key_source=("Pete", "Martyn", "Maeri") val_source=[3826, 3455, 3929] # Set up the dictionary # Brute force way - iterate over keys and values d=dict() for i in range(len(key_source)): d[key_source[i]] = val_source[i] # Echo the dictionary contents to screen print "Dictionary set up: ",d # Echo the entries for name in d.keys(): print "%s\t: %d" % (name,d[name])