import mysql.connector
from mysql.connector import Error
connection=mysql.connector.connect(host='localhost',port='3307',database='python1',user='root',password='root')
mycursor=connection.cursor()
mycursor.execute("desc course")
desc=mycursor.fetchall()
for row in desc:
    print(row)
#not sure