Why is my list comprehension not working?

后端 未结 0 1399
耶瑟儿~
耶瑟儿~ 2021-01-15 05:34

I\'m confused as to why my list comprehension isn\'t working.

def countWords(lst, length):
    return len([x for x in lst if len(x) >= length])

print(coun         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题