I have a script which I\'m using to read an excel file and update an SQL database. I\'m reading the excel file every 30 seconds using a loop. However I only want to update the d
Yes, Python built-in containers are compared by value (both tuples, lists and dicts).
Something like this (I used a list comprehension to add fanciness):
//init pvv=None <...> //iteration vv= [data.cell(i,j).value for (i,j) in ((2,26),(3,26),(4,26))] if vv!=pvv: //do something pvv=vv