1>>> from openpyxl import Workbook
2>>> from openpyxl.utils import get_column_letter
3>>>
4>>> wb = Workbook()
5>>>
6>>> dest_filename = 'empty_book.xlsx'
7>>>
8>>> ws1 = wb.active
9>>> ws1.title = "range names"
10>>>
11>>> for row in range(1, 40):
12... ws1.append(range(600))
13>>>
14>>> ws2 = wb.create_sheet(title="Pi")
15>>>
16>>> ws2['F5'] = 3.14
17>>>
18>>> ws3 = wb.create_sheet(title="Data")
19>>> for row in range(10, 20):
20... for col in range(27, 54):
21... _ = ws3.cell(column=col, row=row, value="{0}".format(get_column_letter(col)))
22>>> print(ws3['AA10'].value)
23AA
24>>> wb.save(filename = dest_filename)
25