Across seven books and eight films, the Harry Potter series has not just entertained us, but educated us.