What the code in the article is doing is:
Given an iterable of pairs, sum the first elements of the pairs for which the first element of the pair is odd and the second element is truthy.
What the code you're suggesting does is, to be polite, unrelated.