I have a couple of lines inside a text that i am looking to turn the first word to a key (space is between each) with a function, and the rest to follow as values.
This is what the text contains:

```
FFFB10 11290 Charlie
1A9345 37659 Delta
221002 93323 Omega

```

The idea is to turn the first word into a key, but also arrange it (row underneath a row) visualy, so the first word(FFFB10) is the key, and the rest are values, meaning:

```
Entered: FFFB10
Location: 11290
Name: Charlie

```

I tried with this as a beginning:

```
def code(codeenter, file):
  for line in file.splitlines():
    if name in line:
        parts = line.split(' ')

```

But i dont know how to continue (i erased most of the code), any suggestions?