from xlwt import Workbook counter=0 while True: func () counter+=1 def func (): wb = Workbook() sheet1 = wb.add_sheet(\'Sheet 1\') sheet1.w