<filename>46.py

for i in range(8, 46):
    f = f'{i}.py'
    with open(f, 'w+') as f:
        f.write()
<filename>46.py

for i in range(8, 46):
    f = f'{i}.py'
    with open(f, 'w+') as f:
        f.write()