Simplifying checklist comprehensions An inventory comprehension can map and filter effectively by capturing the problem: One more equal code sample may just compute len(some_list) twice: as soon as within the if statement and once from the print statement. This is able to steer clear of incurring the extra line required https://eduardosuyyi.uzblog.net/detailed-notes-on-take-my-python-homework-40981051