Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def right_words (klo, kin):
- newlist=[]
- for word in klo:
- if len(word) == kin:
- newlist.append(word)
- print(newlist)
- right_words(['cat', 'cap', 'truth', 'talk'], 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement