pokequiz/Question.py
def checkPreevoGen(preevo):
    """Returns the gen (str) of a preevo of a Pokemon object."""
    conn = sqlite3.connect(db, detect_types=sqlite3.PARSE_DECLTYPES)
    cur = conn.cursor()
    cur.execute('SELECT gen FROM pokemon WHERE name = ?;', (preevo,))
    sel = list(cur.fetchone())[0]
    conn.close()
    return sel
Returns the gen (str) of a preevo of a Pokemon object.
Returns the gen (str) of a preevo of a Pokemon object.
Returns the gen ( str ) of a preevo of a Pokemon object .
def checkPreevoGen(preevo):
    conn = sqlite3.connect(db, detect_types=sqlite3.PARSE_DECLTYPES)
    cur = conn.cursor()
    cur.execute('SELECT gen FROM pokemon WHERE name = ?;', (preevo,))
    sel = list(cur.fetchone())[0]
    conn.close()
    return sel
def checkPreevoGen ( preevo ) : conn = sqlite3 . connect ( db , detect_types = sqlite3 . PARSE_DECLTYPES ) cur = conn . cursor ( ) cur . execute ( 'SELECT gen FROM pokemon WHERE name = ?;' , ( preevo , ) ) sel = list ( cur . fetchone ( ) ) [ 0 ] conn . close ( ) return sel
Returns the gen (str) of a preevo of a Pokemon object.
Returns the gen ( str ) of a preevo of a Pokemon object .
"""Returns the gen (str) of a preevo of a Pokemon object."""
preevo