I need help I want the tax column to be calculated from the income column Also I need the information to be stored in the database from the user input.
import sqlite3
conn = sqlite3.connect('tax1.db')
c = conn.cursor()
#c.execute("""CREATE TABLE tax (
#First text,
#Last text,
#Income real,
#Tax real
#)""")
#c.execute("INSERT INTO tax VALUES('Henry', 'Bass', 80000, 20000)")
for i in range(1):
First = input("Please enter first name:")
Last = input("Please enter last name:")
Income = input("Please enter annual income:")
conn.execute("INSERT INTO tax VALUES ('{}", "{}",
{})).format(First,Last,Income))
c.execute("SELECT * FROM tax WHERE Last='Bass'")
print(c.fetchall())
conn.commit()
conn.close()