Data from a .txt:
ABC 12 34 24
edf 23 15 63
hre 41 3 356
...
...
I want to save each word(in the first column) in a set. For each element in the set, have a list that contains each number after it. E.G. word[ABC][1] = 34, word[hre][2] = 356.
I don’t find any useful information about this online.
Here’s one way:
mkt.py
a.txt
Running: