エラー内容
sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 34 supplied.
間違ったコード
c.execute("insert into Ttehai values (?)",(tehai_db))
正しいコード
c.execute("insert into Ttehai values (?)",(tehai_db,))
原因
executeの第二引数にはタプルでないといけないので、項目が1個だけでも「,」が必要になる。
参考サイト
https://www.takasay.com/entry/2015/07/04/010000
https://techracho.bpsinc.jp/baba/2010_07_16/2130