Sqlite3 Tutorial Query Python Fixed [hot]

Instead of using f-strings or % operators, you should pass values as a second argument to the .execute() method in a tuple or dictionary. :

class DatabaseManager: def (self, db_name='my_database.db'): self.db_name = db_name self.create_tables() sqlite3 tutorial query python fixed