I have below code, where data in variables is changed with iterable loop for.
for i in range(self.tableWidget_16.rowCount()):
s = int(self.tableWidget_16.t