SQLite Forum

how to open or create db in sqlite3
Login
```
self.hdl = (os.path.join(pa, na),'c')
self.id1 = 0
print("File created")
self.hdl[b'id1'] = str(self.id1)
```
You're setting self.hdl to a 2 element tuple. Then 3 lines later it looks like you're trying to use it as a dictionary. Looks like there's a similar confusion in the other half of that init