It wasn't directed at you, Arevos, it was directed at the rewriting of my code from
medList.append ([found for found in sets.group (1, 2, 3) if found != None])
to
if found is not None] # "is not" is safer practice in general
which is an explicit tutorial comment. In fact, the thread HAS been educational. I diverted from my course long enough to go check out generators. I see their utility, but it isn't applicable in this case. The code exists in one place and gets two passes (one for each of two classes of tags). Of particular value to me was discovering the packer/unpacker capability (*group) along the way.