SQL Question 6
def check_user_exists(connection, email): cursor = connection.cursor() cursor.execute('SELECT email FROM users WHERE email = ?',(email,)) results = cursor.fetchone() return results is not None