Using Nested If Function Python Syntax If Then Else