I have a code like the following:
sql_command='''SELECT Grade From GRADES where Student_Number='''+str(id) +''' AND Course_ID IN'''+(list)
grades=execute_sql(sql_command,sql_cursor)
where the list is the a list containing elements in the course_id column satisfying a condition (specific course id),
I want to say, select the only grade where the course_id column is the course_id in my list. How do I do that?