We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Please, can anybody answer me, why itertools.combinations() is fine, but interpreter cannot recognize itertools.ifilter()? I see that using sum with a list comprihension is easier,
I used built in filter() with success, though.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Iterables and Iterators
You are viewing a single comment's thread. Return to all comments →
Please, can anybody answer me, why itertools.combinations() is fine, but interpreter cannot recognize itertools.ifilter()? I see that using sum with a list comprihension is easier, I used built in filter() with success, though.