# coding:utf8

dataSet = [[1, 1, 'yes'],
           [1, 1, 'yes'],
           [1, 0, 'no'],
           [0, 1, 'no'],
           [0, 1, 'no']]

classList = [example[-1] for example in dataSet]

print classList

print classList[0]