mydb = mysql.connector.connect
name = “abhi”
mycursor = mydb.cursor()
sql = “select user_total_assets from users_info where user_name = %s”
val = (name,)
my_result = mycursor.fetchall()
for i in my_result:
i’m stuck on the output of i as an tuple which is (‘100’,) but I need output as 100 which would be an integer, so how to convert this tuple into an integer?