text_plain_output_1.png
from csv import DictReader

people = list(DictReader(open('../input/train.csv')))
people

def letter_for_cabin(cabin):
    return cabin[0] if len(cabin) else ''
cabin_letters = list(set([letter_for_cabin(p['Cabin']) for p in people]))
print(cabin_letters)