import sqlite3
conn = sqlite3.connect('contacten.db')
c = conn.cursor()
#c.execute("""CREATE TABLE mail (
# mail text
# )""")
#c.execute("INSERT INTO mail VALUES ('[email protected]')")
conn.commit()
c.execute("SELECT * FROM mail")
print(c.fetchall())
conn.commit()
conn.close()
This is the code I've made but as a result, I get:
[('[email protected]',), ('[email protected]',), ('[email protected]',)]
But in this array I have a comma too much. ,), like this. does anyone of you know how to get rid of this extra comma?