creating an inventory in python and excel
saqer (0)

Make an inventory for Excel from Python

import the excel package

import xlwt
from xlwt import Workbook

Create a new workbook

wb = Workbook()

Make a sheet in the workbook

sheet1 = wb.add_sheet('Sheet 1')

Inventory header


set up the counter to allow the inventory to be input

i = 1

run a loop forever to allow inventory input

while 1:
g = input() # take anything from the keyboard
i += 1

You are viewing a single comment. View All
mwilki7 (277)

Is this a tutorial or a question?