PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import subprocess, re
output = subprocess.check_output(['python', '-c', f'from builtins import help; help("modules")'])
result = output.decode('utf-8').strip().split('\n')[2:-3]
result = ' '.join(result)
result = re.split(r'\s{2,}', result)[:-1]
result.sort(key=lambda x: x.lower())
print(*[f"{i:>4}: {j}" for i,j in enumerate(result, start=1)],sep='\n')
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run