on-internet
← Community

python list.append with for loop

Stack Overflow ·

I was wondering if it is possible to add a for loop in a append function. used code now: for Master_ii in ExcelSheet_IO.iter_rows(min_row=3): if Master_ii[0].value != '': #Collect column A to S from excel in to Imported_Variables (A=[0]-X=[18]) Imported_Variables.append([Master_ii[0].value,Master_ii[1].value,Master_ii[2].value,Master_ii[3].value,Master_ii[4].value,Master_ii[5].value,Master_ii[6].value,Master_ii[7].value,Master_ii[8].value,Master_ii[9].value,Master_ii[10].value,Master_ii[11].value,Master_ii[12].value,Master_ii[13].value,Master_ii[14].value,Master_ii[15].value,Master_ii[16].valu

Comments

Sign in or sign up to comment and upvote.

No comments yet.