create a database connection to the SQLite database
(db_file)
| 4 | |
| 5 | # create Conn to have the database file |
| 6 | def create_connection(db_file): |
| 7 | """create a database connection to the SQLite database""" |
| 8 | conn = None |
| 9 | try: |
| 10 | conn = sqlite3.connect(db_file) |
| 11 | except sqlite3.Error as e: |
| 12 | print(e) |
| 13 | return conn |
| 14 | |
| 15 | |
| 16 | # store the player's score with their name |