I want to create a mobile app using python and kivy. I have an SQL server and a program which connects to it. However the form of a data which is fetched is not what i need
con=db.connect('Driver={SQL Server};'
'Server=dbname'
'Database=users;'
'Trusted_Connection=yes;')
cursor=con.cursor()
a=self.i.text
print(a)
cursor.execute('SELECT %s FROM users.dbo.users' %a)
res=cursor.fetchall()
print(str(res))
cursor.close()
con.close()
enter code here
In output I have : [(Decimal(9),)]
How can I make it look like : 9
(Without data type etc)