Python Inline If Statement