Hey guys just a small question on this connection here. I wanted to print the output of the sql db using python which is currently successful but the output is not what i desired.
def query(conn):
x = conn.cursor()
x.execute ("SELECT Amount from Expenses")
for item in x.fetchall():
items = map(int,item)
print "The amount is %s" % (items)
output: The amount is [15000] --> which is the concern here. I want to get rid of the square brackets in the output. Please help me out on this
items[0]?....