import sqlite3
conn = sqlite3.connect('jokes.db')
cursor = conn.cursor()
cursor.execute('''CREATE TABLE IF NOT EXISTS jokes (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    joke TEXT NOT NULL,
    contributor TEXT NOT NULL,
    published TEXT NOT NULL       
)''')
conn.commit()
print("✅ Database and table created successfully!")
conn.close()