1import pyodbc
2
3conn = pyodbc.connect(r'Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=path where you stored the Access file\file name.accdb;')
4cursor = conn.cursor()
5cursor.execute('select * from table name')
6
7for row in cursor.fetchall():
8 print (row)
9