def verifyInstructorStatus(course, instructor):
 if (type(course) == str):
  course = db((db.courses.course_name == course)).select(db.courses.id).first()
 return (db(((db.course_instructor.course == course) & (db.course_instructor.instructor == instructor))).count() > 0)

def verifyInstructorStatus ( course , instructor ) : if ( type ( course ) == str ) : course = db ( ( db . courses . course_name == course ) ) . select ( db . courses . id ) . first ( ) return ( db ( ( ( db . course_instructor . course == course ) & ( db . course_instructor . instructor == instructor ) ) ) . count ( ) > 0 )
make sure that the instructor specified is actually an instructor for the given course .