Check the line where the error is reported. Generally, the error is reported by adding a subscript to an integer:
For example:
a =
four
c=a[
2]
Error: Line 2, in & lt; module>
c=a[2]
TypeError: ‘int’ object is not subscriptable
Another example is more complex: two-dimensional