'Tuple to int for Python 3

I have mysql code that outputs a value of (1,) to a variable x in python. I don't want it to be a tuple, instead a int for a if statement. Any thoughts on this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source