DEV Community

Kashif Iftikhar
Kashif Iftikhar

Posted on

TypeError: 'int' object is not subscriptable in Python Nested Loops

In the following code, queryResult is a Nested Lists. A nested list means all of the list values had another list.

LIKE:

[(1024, jkhsa97890),(1025, khka65757),(1025, kjhaksd87987), ....]

So with the first loop, we are getting lists fromqueryResult and storing them in the record.

ARRAYS STORED IN RECORD:

(1024, jkhsasa97890)

Top comments (0)