dict = {}string="1234"for i,ch in enumerate(string): dict[i] = chprint dictfor key in dict: print key, '=', dict[key]