Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import openpyxl
- wb = openpyxl.load_workbook("C:\Users\idaresiwins\Book1.xlsx")
- sheet1 = wb.active
- for word in range(1, 967):
- for comp in range(1, 621):
- if sheet1.cell(row = word, column = 1).value == sheet1.cell(row = comp, column = 2).value:
- pass
- elif sheet1.cell(row = word, column = 1).value != sheet1.cell(row = comp, column = 2).value:
- print(sheet1.cell(row = word, column = 1).value)
Advertisement
Add Comment
Please, Sign In to add comment