import sqlite3
import math

con = sqlite3.connect(r"e:\classroom\python\st.db")

try:
    cur = con.cursor()
    cur.execute("select avg(fee) from courses")
    row = cur.fetchone()
    print("Average Course Fee : ", math.floor(row[0]))
except Exception as ex:
    print("Sorry! Error: ", ex)
finally:
    con.close()

9c7362b6f45c55f0f95edaf995a2935100032ee5
<mask token>

<mask token>
try:
    cur = con.cursor()
    cur.execute('select avg(fee) from courses')
    row = cur.fetchone()
    print('Average Course Fee : ', math.floor(row[0]))
except Exception as ex:
    print('Sorry! Error: ', ex)
finally:
    con.close()

<mask token>
con = sqlite3.connect('e:\\classroom\\python\\st.db')
try:
    cur = con.cursor()
    cur.execute('select avg(fee) from courses')
    row = cur.fetchone()
    print('Average Course Fee : ', math.floor(row[0]))
except Exception as ex:
    print('Sorry! Error: ', ex)
finally:
    con.close()

import sqlite3
import math
con = sqlite3.connect('e:\\classroom\\python\\st.db')
try:
    cur = con.cursor()
    cur.execute('select avg(fee) from courses')
    row = cur.fetchone()
    print('Average Course Fee : ', math.floor(row[0]))
except Exception as ex:
    print('Sorry! Error: ', ex)
finally:
    con.close()

import sqlite3
import math

con = sqlite3.connect(r"e:\classroom\python\st.db")

try:
    cur = con.cursor()
    cur.execute("select avg(fee) from courses")
    row = cur.fetchone()
    print("Average Course Fee : ", math.floor(row[0]))
except Exception as ex:
    print("Sorry! Error: ", ex)
finally:
    con.close()
