'''
Created on Nov 4, 2017

@author: Susan
'''
def howMany(phrase, letter):
    alist = phrase.split()
    wlist = [w.lower() for w in alist if letter in w.lower()]
    return len(set(wlist))

if __name__ == '__main__':
    phrase = "Duke CompSci graduates are Jedi Masters of the technology sector"
    letter = "d"
    x = howMany(phrase,letter)
    print '\"' +phrase+'\"','\"' +letter+'\"', x
    letter = "o"
    x = howMany(phrase,letter)
    print '\"' +phrase+'\"','\"' +letter+'\"', x
