I get an error when adding two values 5 and 5. I would like to receive result 10. I wrote the code based on tuples, this brought me some previous errors because it cannot be add, for example,

```
sum_A = sum (count_A)

```

because I received an error

> 
> TypeError: unsupported operand type(s) for +: 'int' and 'tuple'
> 
> 
> 

So i solved it with `sum(int(row[0])` for the row in `count_gol_fact_home_sqA`. I didn't like it very much this way. I don't want to use sum\_A = sum (int (row [0]) for row in count\_A)

However I continued, but I ran into an error that does not make me add sum\_A and sum\_B.

How can I add `sum_A` and sum\_B? Is there another way to more easily write my code by previously adding `sum_A = sum (count_A)` without receiving errors?

```
#ELEMENT 1
cursor.execute('SELECT City FROM Nation WHERE X = ?', [X])
count_A = cursor.fetchall() #Print [(2,), (1,), (2,)]

sum_A = sum(int(row[0]) for row in count_A) #print 5
print(sum_A)
###########################################

#ELEMENT 2
cursor.execute('SELECT City FROM Nation WHERE Y = ?', [Y])
count_B = cursor.fetchall() #Print [(3,), (2,)]

sum_B = sum(int(row[0]) for row in count_B) #print 5
print(sum_B)
###########################################

SumA_B = sum(sum_A, sum_B) 
print(SumA_B) #ERROR: I would like to get result 10

```

Error:

```
Traceback (most recent call last):
  File "main.py", line 17, in <module>
    SumA_B = sum(sum_A, sum_B)
TypeError: 'int' object is not iterable

```