Python and SQLite: insert into table by input

enter image description here

I am doing this but it still gives me this Error

I am trying to insert data by input into the table

>Solution :

Try this:

cr.execute(f"INSERT INTO Family VALUES('{name}',{age},'{Hobby}')")

Leave a Reply