Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def words_with_5(list):
- sum=0
- for el in list:
- if type(el)==type("aa") and len(el)==5:
- sum+=1
- return sum
- print(words_with_5([-2,"aaaaa","bbbbb"]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement