1 import MySQLdb 2 qdse_db = “qdse” 3 4 def create_WORDS_table(): 5 conn = MySQLdb.Connection(db=qdse_db) 6 cursor = conn.cursor() 7 sql = “””CREATE TABLE WORDS ( 8 id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, 9 word VARCHAR(15) NOT NULL, 10 INDEX (word) 11 )””” 12 result = cursor.execute(sql) 13 conn.close()