results = ['first', 'second', 'third', 'fourth', 'fifth', 'sixth',
    'seventh', 'eighth']
name = results[((not a) << 2) + ((not b) << 1) + (not c)]
Python elegant assignment based on True/False values