0
How do you import sql into python
I've tried 'import sqlite3' and it hasn't worked so I'm wondering if I have got something wrong or if I need to add more
4 Answers
+ 6
Check it out:
https://code.sololearn.com/csyhsIovmZJ3/?ref=app
+ 2
what exactly did you do?
it is available here :
import sqlite3
print(sqlite3.version)
>>> 2.6.0
0
I found out what my problem was but thanks anyway. I was trying to create a table but it wouldn't work because I hadn't put
'with sqlite3.connect("quiz.db") as db:
cursor = db.cursor()'
thanks again
0
thx