Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- word_dict = {}
- leng_list = [1,2,3,4]
- for word in character_list:
- if word.isalpha():
- if not len(word) in leng_list:
- word_dict[word] = 1
- else:
- word_dict[word] += 1
- print(word_dict)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement