import sqlite3

mydb = sqlite3.connect('pokedex.db')
curs = mydb.cursor()

curs.execute('''SELECT  max(base_experience),species_id FROM POKEMON GROUP BY species_id ORDER BY base_experience DESC LIMIT 3;''')
result = curs.fetchall()

for row in result:
  print(row[0])

mydb.commit()
mydb.close()

7e49e4a1c05a42e2b2338612b068002b8de53781
<mask token>

<mask token>
curs.execute(
    'SELECT  max(base_experience),species_id FROM POKEMON GROUP BY species_id ORDER BY base_experience DESC LIMIT 3;'
    )
<mask token>
for row in result:
    print(row[0])
mydb.commit()
mydb.close()

<mask token>
mydb = sqlite3.connect('pokedex.db')
curs = mydb.cursor()
curs.execute(
    'SELECT  max(base_experience),species_id FROM POKEMON GROUP BY species_id ORDER BY base_experience DESC LIMIT 3;'
    )
result = curs.fetchall()
for row in result:
    print(row[0])
mydb.commit()
mydb.close()

import sqlite3
mydb = sqlite3.connect('pokedex.db')
curs = mydb.cursor()
curs.execute(
    'SELECT  max(base_experience),species_id FROM POKEMON GROUP BY species_id ORDER BY base_experience DESC LIMIT 3;'
    )
result = curs.fetchall()
for row in result:
    print(row[0])
mydb.commit()
mydb.close()

import sqlite3

mydb = sqlite3.connect('pokedex.db')
curs = mydb.cursor()

curs.execute('''SELECT  max(base_experience),species_id FROM POKEMON GROUP BY species_id ORDER BY base_experience DESC LIMIT 3;''')
result = curs.fetchall()

for row in result:
  print(row[0])

mydb.commit()
mydb.close()
