Python Inline If Else Assignment Status Type Id