import openpyxl
file = input('Type your file with path: ')
lst = openpyxl.load_workbook(file).sheetnames
with open('files.txt', 'w+') as file:
    for i in sorted(lst):
        file.write(i + '\n')

6f949bae0d2b803e01444935541a579698af663c
<mask token>

<mask token>
with open('files.txt', 'w+') as file:
    for i in sorted(lst):
        file.write(i + '\n')

<mask token>
file = input('Type your file with path: ')
lst = openpyxl.load_workbook(file).sheetnames
with open('files.txt', 'w+') as file:
    for i in sorted(lst):
        file.write(i + '\n')

import openpyxl
file = input('Type your file with path: ')
lst = openpyxl.load_workbook(file).sheetnames
with open('files.txt', 'w+') as file:
    for i in sorted(lst):
        file.write(i + '\n')
