tuple(sheet['A1':'Z1'])
new_inp = int(input('Type first column'))
new_inp2 = int(input('Type second column'))
first_col = sheet.columns[new_inp]
second_col = sheet.columns[new_inp2]
for cellObj in first_col:
list1 = [cellObj.value]
for cellObj in second_col:
list2 = [cellObj.value]
for i,val in enumerate(list1,list2):
print(i,val)Thanks! You're right, i didn't think of using zip function. Now it works, thank you very much.
--
You received this message because you are subscribed to a topic in the Google Groups "openpyxl-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openpyxl-users/02uolA4UBkg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openpyxl-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.