Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error **TypeError: tuple indices must be integers, not str** **in python**. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

Table of Contents

## How TypeError: tuple indices must be integers, not str Error Occurs?

Today I get the following error **TypeError: tuple indices must be integers, not str** **in python**.

## How To Solve TypeError: tuple indices must be integers, not str Error ?

**How To Solve TypeError: tuple indices must be integers, not str Error ?**To Solve TypeError: tuple indices must be integers, not str Error Like the error says,

`row`

is a tuple, so you can't do`row["pool_number"]`

. You need to use the index:`row[0]`

.

**TypeError: tuple indices must be integers, not str**To Solve TypeError: tuple indices must be integers, not str Error Like the error says,

`row`

is a tuple, so you can't do`row["pool_number"]`

. You need to use the index:`row[0]`

.

## Solution 1

Like the error says, `row`

is a tuple, so you can’t do `row["pool_number"]`

. You need to use the index: `row[0]`

.

## Solution 2

I think you should do

for index, row in result:

If you wanna access by name.

**Summery**

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

**Also, Read**