How to stop when there are no more elements in a list matching your criteria (Python)

后端 未结 0 1943
囚心锁ツ
囚心锁ツ 2020-12-19 17:11

I\'ve got a list, with each element being a word. In this list I want to find the pair of words which their added letter count is 20, print them and remove them from the lis

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