Baba <raoul...@gmail.com> writes:
> word= 'even'
> dict2 = {'i': 1, 'n': 1, 'e': 1, 'l': 2, 'v': 2}
>
> i want to know if word is entirely composed of letters in dict2

set(word) <= set(dict2.keys())
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to