very new to python and have a "python block" I'm trying to solve. I want to query a specific linux directory for its files (could be any number of files in directory), then display (print) the files list for user input selection; like the following:

```
Please choose your option:

1 - somecode.py

2 - somefile.txt

3 - someotherfile.j2

```

Where the above filenames were pulled from the directory and the option number is prefixed and displayed for the user to select. So far I can pull the directory list and print it, but getting stuck pulling the list into a user input function for proper display and user selection.

if I just pull a print the files in the directory it looks good, but having trouble with the part about prefixing a option varibale to the list and displaying for user input.

```
for filename in os.listdir('./templates'):

    print(filename)

```

it looks like this:

```
cisco_tmpl.j2

juniper_tmpl.j2

nxos_tmpl.j2

```

Many hours trying various ways to pretty this up and any help will be greatly appreciated.

Thanks