My code seems to run fine without any errors but it just creates an empty database file with nothing in it, Cant figure out what i\'m doing wrong here.
impor
The reason that your database file is becoming blank isn't because your varbiables aren't inserted into your SQL syntax properly. Its because of what you did here cur.commit(). You're not meant to commit your cursor to save any changes to the database. You're meant to apply this attribute to the variable in which you've connected to your database file. So in your case, it should be con.commit()
Hope this helps :)