Python Unexpected Behaviour With A Conditional Generator Expression

Python Unexpected Behaviour With A Conditional Generator Expression