Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = 0
- if word in word_list:
- for letter in word:
- if letter not in hand:
- return False
- if letter in hand and hand[letter]>0:
- a = a + 1
- hand[letter] -= 1
- if a == len(word):
- return True
- else:
- return False
- return False
Advertisement
Add Comment
Please, Sign In to add comment