That's not really how dictionaries work. A dictionary is basically a hash table. The keys work like a set; in that duplicate entries aren't allowed. I think what you are trying to do is something like:
data = """1 2 3 4 /a/
5 6 7 8 /b/
9 0 1 2 /c/
3 4 5 6 /d/"""
result = {}
for line in data.split("\n"):
*numbers, index = line.split(" ")
index = index.replace("/", "")
result[index] = numbers
print(result)
The dictionary indexes are not ordered. If you want to keep their order, you can always store that also:
indexes_ordered = []
...
indexes_ordered.append(index)
Or check out this question to discover sorting.
Lastly, to get your values, you can iterate through the keys:
for key in result:
print(result[key])
Or, at your option, change result
to indexes_ordered
. You can do things to your ordered lists for each dictionary entry through any of the multitudinous forms of list comprehension.
For bonus points, you can have dictionary entries point to other dictionary entries:
x = {}
x[0] = 1
x[1] = 2
x[2] = 3
x[3] = "yay!"
result = 0
y = 0
while y in x: y = x[y]
result = y
print(result)
To get what you describe in your edited question, you would do something like:
another_result = {}
a = ord('a')
for key in result:
x = result[key]
for n in range(len(x)):
another_result[key + chr(a+n)] = x[n]
for key in another_result: print(key, another_result[key])
Comment if you have any questions.