def fetchdata(self): conn = pymysql.connect(host="localhost", user="root", password="1234", database="Gym") cur = conn.cursor() cur.e