from os import remove, path import sqlite3 if path.exists('game.db'): remove('game.db') connection = sqlite3.connect('game.db') cursor = connection.cursor() cursor.execute('''CREATE TABLE players (name text primary key, posx integer, posy integer, level integer)''') connection.commit() connection.close()