A Characterization of List Learnability