Nov-03-2020, 06:19 PM
(Nov-03-2020, 04:32 PM)bowlofred Wrote: Without the code, we can't help much. But the error suggests that one of those variables is a tuple and the index is too large.
Before the if you could print the types of them:
print(f"dataseg is of type {type(dataseg)} and has {len(dataseg)} elements.") print(f"lines is of type {type(lines)} and has {len(lines)} elements.")That won't tell you why you have a tuple, but it will tell you which one it is and its length.
I solved it, thanks !